|
@@ -1,12 +1,16 @@
|
|
|
<template>
|
|
|
<form-wrapper>
|
|
|
<form @submit.prevent="handleSubmit" @change="handleSubmit" @keydown="form.onKeydown($event)">
|
|
|
+ <h4 class="title is-4">{{ $t('settings.general') }}</h4>
|
|
|
<form-select :options="langs" :form="form" fieldName="lang" :label="$t('settings.forms.language.label')" :help="$t('settings.forms.language.help')" />
|
|
|
<form-select :options="layouts" :form="form" fieldName="displayMode" :label="$t('settings.forms.display_mode.label')" :help="$t('settings.forms.display_mode.help')" />
|
|
|
+ <form-checkbox :form="form" fieldName="showAccountsIcons" :label="$t('settings.forms.show_accounts_icons.label')" :help="$t('settings.forms.show_accounts_icons.help')" />
|
|
|
+ <h4 class="title is-4">{{ $t('settings.security') }}</h4>
|
|
|
+ <form-select :options="kickUserAfters" :form="form" fieldName="kickUserAfter" :label="$t('settings.forms.auto_lock.label')" :help="$t('settings.forms.auto_lock.help')" />
|
|
|
<form-checkbox :form="form" fieldName="showTokenAsDot" :label="$t('settings.forms.show_token_as_dot.label')" :help="$t('settings.forms.show_token_as_dot.help')" />
|
|
|
<form-checkbox :form="form" fieldName="closeTokenOnCopy" :label="$t('settings.forms.close_token_on_copy.label')" :help="$t('settings.forms.close_token_on_copy.help')" />
|
|
|
+ <h4 class="title is-4">{{ $t('settings.advanced') }}</h4>
|
|
|
<form-checkbox :form="form" fieldName="useBasicQrcodeReader" :label="$t('settings.forms.use_basic_qrcode_reader.label')" :help="$t('settings.forms.use_basic_qrcode_reader.help')" />
|
|
|
- <form-checkbox :form="form" fieldName="showAccountsIcons" :label="$t('settings.forms.show_accounts_icons.label')" :help="$t('settings.forms.show_accounts_icons.help')" />
|
|
|
</form>
|
|
|
</form-wrapper>
|
|
|
</template>
|
|
@@ -25,6 +29,7 @@
|
|
|
useBasicQrcodeReader: this.$root.appSettings.useBasicQrcodeReader,
|
|
|
showAccountsIcons: this.$root.appSettings.showAccountsIcons,
|
|
|
displayMode: this.$root.appSettings.displayMode,
|
|
|
+ kickUserAfter: this.$root.appSettings.kickUserAfter,
|
|
|
}),
|
|
|
langs: [
|
|
|
{ text: this.$t('languages.en'), value: 'en' },
|
|
@@ -33,6 +38,17 @@
|
|
|
layouts: [
|
|
|
{ text: this.$t('settings.forms.grid'), value: 'grid' },
|
|
|
{ text: this.$t('settings.forms.list'), value: 'list' },
|
|
|
+ ],
|
|
|
+ kickUserAfters: [
|
|
|
+ { text: this.$t('settings.forms.never'), value: '0' },
|
|
|
+ { text: this.$t('settings.forms.on_token_copy'), value: '-1' },
|
|
|
+ { text: this.$t('settings.forms.1_minutes'), value: '1' },
|
|
|
+ { text: this.$t('settings.forms.5_minutes'), value: '5' },
|
|
|
+ { text: this.$t('settings.forms.10_minutes'), value: '10' },
|
|
|
+ { text: this.$t('settings.forms.15_minutes'), value: '15' },
|
|
|
+ { text: this.$t('settings.forms.30_minutes'), value: '30' },
|
|
|
+ { text: this.$t('settings.forms.1_hour'), value: '60' },
|
|
|
+ { text: this.$t('settings.forms.1_day'), value: '1440' },
|
|
|
]
|
|
|
}
|
|
|
},
|