This commit is contained in:
2020-12-09 15:40:01 +00:00
parent df044058ae
commit 3ed6dfa264

View File

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