View | Details | Raw Unified | Return to bug 38010
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorList.vue (-4 / +15 lines)
Lines 74-81 export default { Link Here
74
                    }),
74
                    }),
75
                },
75
                },
76
                actions: {
76
                actions: {
77
                    0: ["show"],
77
                    "-1": [
78
                    "-1": ["edit", "delete"],
78
                        "edit",
79
                        {
80
                            delete: {
81
                                text: this.$__("Delete"),
82
                                icon: "fa fa-trash",
83
                                should_display: row =>
84
                                    (!row.baskets ||
85
                                        row.baskets.length === 0) &&
86
                                    (!row.subscriptions ||
87
                                        row.subscriptions.length === 0),
88
                            },
89
                        },
90
                    ],
79
                },
91
                },
80
            },
92
            },
81
            before_route_entered: false,
93
            before_route_entered: false,
Lines 121-127 export default { Link Here
121
                    cancel_label: this.$__("No, do not delete"),
133
                    cancel_label: this.$__("No, do not delete"),
122
                },
134
                },
123
                () => {
135
                () => {
124
                    const client = APIClient.erm
136
                    const client = APIClient.acquisition
125
                    client.vendors.delete(vendor.id).then(
137
                    client.vendors.delete(vendor.id).then(
126
                        success => {
138
                        success => {
127
                            this.setMessage(
139
                            this.setMessage(
128
- 

Return to bug 38010