This commit is contained in:
2020-12-09 15:18:16 +00:00
parent 56aa8a8993
commit df044058ae

View File

@@ -4,6 +4,12 @@
$ay.t("Delete")
}}</v-expansion-panel-header>
<v-expansion-panel-content>
<v-row>
<v-col cols="12">
<v-icon x-large color="accent">$ayiSkullCrossbones</v-icon>
</v-col>
</v-row>
<v-btn icon @click="goHelp()"><v-icon>$ayiQuestionCircle</v-icon></v-btn>
<v-btn
:disabled="!canDoAction()"
@@ -20,6 +26,7 @@
export default {
created() {
let vm = this;
await fetchTranslatedText(vm);
//NOTE: if extension doesn't support a particular object add it here to the NoType default
if (vm.dataListSelection.ObjectType != 0) {
vm.rights = window.$gz.role.getRights(vm.dataListSelection.ObjectType);
@@ -46,6 +53,14 @@ export default {
return false;
},
async doAction() {
let dialogResult = await window.$gz.dialog.confirmDelete();
if (dialogResult != true) {
return;
}
dialogResult = await window.$gz.dialog.confirmDelete();
if (dialogResult != true) {
return;
}
//do the bulk action
let vm = this;
let url = "tag-list/";
@@ -149,4 +164,15 @@ export default {
dataListSelection: Object
}
};
//////////////////////////////////////////////////////////
//
// Ensures UI translated text is available
//
async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations([
"EraseMultipleObjectsWarning"
]);
}
</script>