This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
created() {
|
||||
async created() {
|
||||
let vm = this;
|
||||
await fetchTranslatedText(vm);
|
||||
//NOTE: if extension doesn't support a particular object add it here to the NoType default
|
||||
@@ -43,22 +43,14 @@ export default {
|
||||
window.open(this.$store.state.helpUrl + "ay-ex-delete", "_blank");
|
||||
},
|
||||
canDoAction() {
|
||||
let vm = this;
|
||||
if (vm.action == "Replace" && !vm.replace) {
|
||||
return false;
|
||||
}
|
||||
if (vm.tag) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
},
|
||||
async doAction() {
|
||||
let dialogResult = await window.$gz.dialog.confirmDelete();
|
||||
if (dialogResult != true) {
|
||||
return;
|
||||
}
|
||||
dialogResult = await window.$gz.dialog.confirmDelete();
|
||||
if (dialogResult != true) {
|
||||
dialogResult = await window.$gz.dialog.confirmGeneric(
|
||||
"EraseMultipleObjectsWarning",
|
||||
"error"
|
||||
);
|
||||
if (dialogResult == false) {
|
||||
return;
|
||||
}
|
||||
//do the bulk action
|
||||
@@ -174,5 +166,4 @@ async function fetchTranslatedText(vm) {
|
||||
"EraseMultipleObjectsWarning"
|
||||
]);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user