Set Options with fallback values and better boolean handling

This commit is contained in:
Bubka
2020-03-13 22:10:36 +01:00
parent a545716798
commit 76ebf847df
7 changed files with 81 additions and 24 deletions

View File

@ -23,8 +23,8 @@
fail: '',
form: new Form({
lang: this.$root.$i18n.locale,
showTokenAsDot: Boolean(Number(appSettings.showTokenAsDot)),
isDemoApp: Boolean(Number(appSettings.isDemoApp)),
showTokenAsDot: appSettings.showTokenAsDot,
isDemoApp: appSettings.isDemoApp,
}),
options: [
{ text: this.$t('languages.en'), value: 'en' },