Add (inoperative) Demo option to the Options tab

This commit is contained in:
Bubka
2020-03-13 12:05:26 +01:00
parent e6a4e5c69b
commit a545716798
4 changed files with 20 additions and 1 deletions

View File

@ -7,6 +7,7 @@
<form @submit.prevent="handleSubmit" @change="handleSubmit" @keydown="form.onKeydown($event)">
<form-select :options="options" :form="form" fieldName="lang" :label="$t('settings.forms.language.label')" :help="$t('settings.forms.language.help')" />
<form-switch :form="form" fieldName="showTokenAsDot" :label="$t('settings.forms.show_token_as_dot.label')" :help="$t('settings.forms.show_token_as_dot.help')" />
<form-switch :form="form" fieldName="isDemoApp" :label="$t('settings.forms.is_demo_app.label')" :help="$t('settings.forms.is_demo_app.help')" />
</form>
</form-wrapper>
</template>
@ -23,6 +24,7 @@
form: new Form({
lang: this.$root.$i18n.locale,
showTokenAsDot: Boolean(Number(appSettings.showTokenAsDot)),
isDemoApp: Boolean(Number(appSettings.isDemoApp)),
}),
options: [
{ text: this.$t('languages.en'), value: 'en' },