This commit is contained in:
2020-07-03 17:48:11 +00:00
parent 3fcf6883b9
commit 1e659420e2
2 changed files with 20 additions and 6 deletions

View File

@@ -50,7 +50,7 @@
<span class="text-h4 warning--text mr-6">{{
$ay.t("ReadOnly")
}}</span>
<v-btn @click="duplicate()">
<v-btn @click="duplicate()" :loading="duplicating">
<v-icon left>fa-clone</v-icon> {{ $ay.t("Duplicate") }}
</v-btn>
</v-col>
@@ -73,6 +73,19 @@
@input="fieldValueChanged('name')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
v-model="obj.cjkIndex"
:readonly="formState.readOnly"
:disabled="formState.readOnly"
:label="$ay.t('GlobalCJKIndex')"
:hint="$ay.t('GlobalCJKIndexDescription')"
:persistent-hint="true"
ref="cjkIndex"
:error-messages="form().serverErrors(this, 'cjkIndex')"
@change="fieldValueChanged('cjkIndex')"
></v-checkbox>
</v-col>
<!-- ----------------------- -->
<v-col cols="12">
<v-card>
@@ -214,6 +227,7 @@ export default {
replace: "",
replaceDialog: false,
editingActiveTranslation: false,
duplicating: false,
obj: {},
formState: {
ready: false,
@@ -469,6 +483,7 @@ export default {
try {
window.$gz.form.deleteAllErrorBoxErrors(vm);
vm.duplicating = true;
let res = await window.$gz.api.upsert(url);
if (res.error) {
vm.formState.serverError = res.error;
@@ -487,6 +502,7 @@ export default {
window.$gz.errorHandler.handleFormError(ex, vm);
} finally {
vm.formState.loading = false;
vm.duplicating = false;
}
}
}
@@ -679,7 +695,9 @@ async function fetchTranslatedText(vm) {
"TranslationDisplayText",
"FindAndReplace",
"Find",
"Replace"
"Replace",
"GlobalCJKIndex",
"GlobalCJKIndexDescription"
]);
}