golden-logic-ui 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/golden-logic-ui.js
CHANGED
|
@@ -90566,18 +90566,20 @@ const lAe = {
|
|
|
90566
90566
|
message: ((l = this.language) == null ? void 0 : l.message_delete_confirmation) ?? "Are you sure you want to delete the selected items?",
|
|
90567
90567
|
okButton: ((c = this.language) == null ? void 0 : c.okbutton_delete_confirmation) ?? "Yes, delete it",
|
|
90568
90568
|
cancelButton: ((f = this.language) == null ? void 0 : f.cancelbutton_delete_confirmation) ?? "Cancel"
|
|
90569
|
-
}))
|
|
90570
|
-
this.$refs.ConfirmationDelete.showLoading()
|
|
90571
|
-
|
|
90569
|
+
})) {
|
|
90570
|
+
this.$refs.ConfirmationDelete.showLoading();
|
|
90571
|
+
for (const b of this.checkedIds)
|
|
90572
|
+
await axios.delete(`${this.xprops.route}/${b}`).then(() => {
|
|
90573
|
+
console.log(`Item with ID ${b} deleted successfully.`);
|
|
90572
90574
|
}).catch((x) => {
|
|
90573
|
-
console.log(x);
|
|
90575
|
+
console.log(`Error deleting item with ID ${b}:`, x);
|
|
90574
90576
|
});
|
|
90575
|
-
|
|
90577
|
+
this.checkedIds = [], this.$refs.ConfirmationDelete.hideLoading(), x2.methods.add({
|
|
90576
90578
|
message: ((m = this.language) == null ? void 0 : m.selected_items_deleted_successfully) ?? "Selected items deleted successfully.",
|
|
90577
90579
|
type: "success",
|
|
90578
90580
|
duration: 5e3
|
|
90579
90581
|
}), this.GetItemLists();
|
|
90580
|
-
else
|
|
90582
|
+
} else
|
|
90581
90583
|
return;
|
|
90582
90584
|
},
|
|
90583
90585
|
toggleSelectAll() {
|
|
@@ -90997,7 +90999,7 @@ function RAe(r, t, s, l, c, f) {
|
|
|
90997
90999
|
])
|
|
90998
91000
|
], 64);
|
|
90999
91001
|
}
|
|
91000
|
-
const kRe = /* @__PURE__ */ Qi(lAe, [["render", RAe], ["__scopeId", "data-v-
|
|
91002
|
+
const kRe = /* @__PURE__ */ Qi(lAe, [["render", RAe], ["__scopeId", "data-v-16a0d7b1"]]), MAe = {
|
|
91001
91003
|
components: {},
|
|
91002
91004
|
props: {
|
|
91003
91005
|
data: Array,
|