This commit is contained in:
@@ -4,6 +4,12 @@
|
|||||||
$ay.t("Delete")
|
$ay.t("Delete")
|
||||||
}}</v-expansion-panel-header>
|
}}</v-expansion-panel-header>
|
||||||
<v-expansion-panel-content>
|
<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 icon @click="goHelp()"><v-icon>$ayiQuestionCircle</v-icon></v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
:disabled="!canDoAction()"
|
:disabled="!canDoAction()"
|
||||||
@@ -20,6 +26,7 @@
|
|||||||
export default {
|
export default {
|
||||||
created() {
|
created() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
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
|
||||||
if (vm.dataListSelection.ObjectType != 0) {
|
if (vm.dataListSelection.ObjectType != 0) {
|
||||||
vm.rights = window.$gz.role.getRights(vm.dataListSelection.ObjectType);
|
vm.rights = window.$gz.role.getRights(vm.dataListSelection.ObjectType);
|
||||||
@@ -46,6 +53,14 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
async doAction() {
|
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
|
//do the bulk action
|
||||||
let vm = this;
|
let vm = this;
|
||||||
let url = "tag-list/";
|
let url = "tag-list/";
|
||||||
@@ -149,4 +164,15 @@ export default {
|
|||||||
dataListSelection: Object
|
dataListSelection: Object
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Ensures UI translated text is available
|
||||||
|
//
|
||||||
|
async function fetchTranslatedText(vm) {
|
||||||
|
await window.$gz.translation.cacheTranslations([
|
||||||
|
"EraseMultipleObjectsWarning"
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user