This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<v-container fluid>
|
||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||
{{ formState }}
|
||||
<!-- {{ formState }} -->
|
||||
<v-row v-if="formState.ready">
|
||||
<v-col>
|
||||
<v-form ref="form">
|
||||
@@ -33,18 +33,24 @@
|
||||
<v-data-table
|
||||
:headers="[
|
||||
{
|
||||
text: $ay.t('KeyKey'),
|
||||
text: $ay.t('TranslationKey'),
|
||||
align: 'start',
|
||||
value: 'key'
|
||||
},
|
||||
{ text: $ay.t('DisplayKey'), value: 'display' }
|
||||
{ text: $ay.t('TranslationDisplayText'), value: 'display' }
|
||||
]"
|
||||
:items="obj.translationItems"
|
||||
:footer-props="{
|
||||
itemsPerPageText: $ay.t('RowsPerPage'),
|
||||
pageText: $ay.t('PageOfPageText')
|
||||
}"
|
||||
>
|
||||
<template v-slot:item.display="props">
|
||||
<v-edit-dialog
|
||||
large
|
||||
:return-value.sync="props.item.display"
|
||||
:cancel-text="$ay.t('Cancel')"
|
||||
:save-text="$ay.t('Save')"
|
||||
>
|
||||
{{ props.item.display }}
|
||||
<template v-slot:input>
|
||||
@@ -539,7 +545,12 @@ async function initForm(vm) {
|
||||
// Ensures UI translated text is available
|
||||
//
|
||||
async function fetchTranslatedText(vm) {
|
||||
await window.$gz.translation.cacheTranslations(["Translation", "Name"]);
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"Translation",
|
||||
"Name",
|
||||
"TranslationKey",
|
||||
"TranslationDisplayText"
|
||||
]);
|
||||
}
|
||||
|
||||
//////////////////////
|
||||
|
||||
@@ -407,7 +407,7 @@ export default {
|
||||
}, 2000);
|
||||
}
|
||||
vm.formState.serverError = res.error;
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
vm.formState.loading = false;
|
||||
} else {
|
||||
vm.obj = res.data;
|
||||
@@ -425,7 +425,7 @@ export default {
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error, vm);
|
||||
vm.formState.loading = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
async submit() {
|
||||
let vm = this;
|
||||
|
||||
Reference in New Issue
Block a user