Batch is the new Bulk
This commit is contained in:
@@ -81,7 +81,7 @@ export default {
|
||||
await fetchTranslatedText(this);
|
||||
await populateSelectionLists(this);
|
||||
generateMenu(this);
|
||||
this.handleSelected([]); //start out read only no selection state for bulk ops options
|
||||
this.handleSelected([]); //start out read only no selection state for batch ops options
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.$gz.eventBus.$off("menu-click", clickHandler);
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
canBulkOp() {
|
||||
canBatchOp() {
|
||||
return (
|
||||
this.rights.change &&
|
||||
this.selectedItems &&
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
handleSelected(selected) {
|
||||
this.selectedItems = selected;
|
||||
|
||||
if (this.canBulkOp()) {
|
||||
if (this.canBatchOp()) {
|
||||
window.$gz.eventBus.$emit(
|
||||
"menu-enable-item",
|
||||
FORM_KEY + ":DELETE_SELECTED"
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
vm.moveDialog = false;
|
||||
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
let res = await window.$gz.api.upsert("attachment/bulk-move", {
|
||||
let res = await window.$gz.api.upsert("attachment/batch-move", {
|
||||
idList: this.selectedItems,
|
||||
toType: this.moveType,
|
||||
toId: this.moveId
|
||||
@@ -176,7 +176,7 @@ export default {
|
||||
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
let res = await window.$gz.api.upsert(
|
||||
"attachment/bulk-delete",
|
||||
"attachment/batch-delete",
|
||||
this.selectedItems
|
||||
);
|
||||
if (res.error) {
|
||||
|
||||
Reference in New Issue
Block a user