This commit is contained in:
2020-06-24 14:09:33 +00:00
parent bf05846ce4
commit b1c8a05463
2 changed files with 17 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<template> <template>
<v-container fluid> <v-container fluid>
<gz-report-selector ref="reportSelector"></gz-report-selector> <gz-report-selector ref="reportSelector"></gz-report-selector>
{{ formState }} <!-- {{ formState }} -->
<v-row v-if="formState.ready"> <v-row v-if="formState.ready">
<v-col> <v-col>
<v-form ref="form"> <v-form ref="form">
@@ -33,18 +33,24 @@
<v-data-table <v-data-table
:headers="[ :headers="[
{ {
text: $ay.t('KeyKey'), text: $ay.t('TranslationKey'),
align: 'start', align: 'start',
value: 'key' value: 'key'
}, },
{ text: $ay.t('DisplayKey'), value: 'display' } { text: $ay.t('TranslationDisplayText'), value: 'display' }
]" ]"
:items="obj.translationItems" :items="obj.translationItems"
:footer-props="{
itemsPerPageText: $ay.t('RowsPerPage'),
pageText: $ay.t('PageOfPageText')
}"
> >
<template v-slot:item.display="props"> <template v-slot:item.display="props">
<v-edit-dialog <v-edit-dialog
large large
:return-value.sync="props.item.display" :return-value.sync="props.item.display"
:cancel-text="$ay.t('Cancel')"
:save-text="$ay.t('Save')"
> >
{{ props.item.display }} {{ props.item.display }}
<template v-slot:input> <template v-slot:input>
@@ -539,7 +545,12 @@ async function initForm(vm) {
// Ensures UI translated text is available // Ensures UI translated text is available
// //
async function fetchTranslatedText(vm) { async function fetchTranslatedText(vm) {
await window.$gz.translation.cacheTranslations(["Translation", "Name"]); await window.$gz.translation.cacheTranslations([
"Translation",
"Name",
"TranslationKey",
"TranslationDisplayText"
]);
} }
////////////////////// //////////////////////