re-factor / cleanup

This commit is contained in:
2022-01-11 22:08:38 +00:00
parent e871708b20
commit e0be8a7cfe
251 changed files with 14680 additions and 15693 deletions

View File

@@ -15,8 +15,8 @@
:disabled="!canDoAction()"
color="blue darken-1"
text
@click="doAction()"
:loading="jobActive"
@click="doAction()"
>{{ $ay.t("StartJob") }}</v-btn
>
</v-expansion-panel-content>
@@ -24,9 +24,17 @@
</template>
<script>
export default {
props: {
dataListSelection: { type: Object, default: null }
},
data: () => ({
jobActive: false,
rights: window.$gz.role.defaultRightsObject(),
available: false
}),
async created() {
const vm = this;
await fetchTranslatedText(vm);
await fetchTranslatedText();
//NOTE: if extension doesn't support a particular object add it here to the NoType default
if (
vm.dataListSelection.AType != 0 &&
@@ -36,11 +44,6 @@ export default {
}
vm.available = vm.rights.change;
},
data: () => ({
jobActive: false,
rights: window.$gz.role.defaultRightsObject(),
available: false
}),
methods: {
goHelp() {
window.open(this.$store.state.helpUrl + "ay-ex-delete", "_blank");
@@ -107,9 +110,6 @@ export default {
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("JobFailed"));
}
}
},
props: {
dataListSelection: { type: Object, default: null }
}
};
@@ -117,7 +117,7 @@ export default {
//
// Ensures UI translated text is available
//
async function fetchTranslatedText(vm) {
async function fetchTranslatedText() {
await window.$gz.translation.cacheTranslations([
"EraseMultipleObjectsWarning"
]);