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

@@ -5,10 +5,6 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang
todo: Backup, probably need to add option "Do not backup automatically"
or something to that effect for scenarios where the built in backup won't be used / won't work
rather than a boot environment option I'm thinking a configuration in backupsettings option so it's visible in UI
todo: translation page needs cjkindex exposed, also it needs a wait indicator when duplicating (in the duplicate button?)
todo: if dbid in url query parameter of contact form on server it should include that in the message
also something needs to be fixed there, it's been in notes forever

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"
]);
}