mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-24 22:12:06 +02:00
Add option to show/hide icons in accounts list view
This commit is contained in:
parent
6cc297f65a
commit
ddeab18df3
@ -37,6 +37,7 @@ return [
|
|||||||
'closeTokenOnCopy' => false,
|
'closeTokenOnCopy' => false,
|
||||||
'useBasicQrcodeReader' => false,
|
'useBasicQrcodeReader' => false,
|
||||||
'displayMode' => 'list',
|
'displayMode' => 'list',
|
||||||
|
'showAccountsIcons' => true
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</transition>
|
</transition>
|
||||||
<div class="tfa-content is-size-3 is-size-4-mobile" @click.stop="showAccount(account)">
|
<div class="tfa-content is-size-3 is-size-4-mobile" @click.stop="showAccount(account)">
|
||||||
<div class="tfa-text has-ellipsis">
|
<div class="tfa-text has-ellipsis">
|
||||||
<img :src="'/storage/icons/' + account.icon" v-if="account.icon">
|
<img :src="'/storage/icons/' + account.icon" v-if="account.icon && $root.appSettings.showAccountsIcons">
|
||||||
{{ account.service }}
|
{{ account.service }}
|
||||||
<span class="is-family-primary is-size-6 is-size-7-mobile has-text-grey ">{{ account.account }}</span>
|
<span class="is-family-primary is-size-6 is-size-7-mobile has-text-grey ">{{ account.account }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<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="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')" />
|
<form-checkbox :form="form" fieldName="closeTokenOnCopy" :label="$t('settings.forms.close_token_on_copy.label')" :help="$t('settings.forms.close_token_on_copy.help')" />
|
||||||
<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="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>
|
||||||
</form-wrapper>
|
</form-wrapper>
|
||||||
</template>
|
</template>
|
||||||
@ -21,13 +22,12 @@
|
|||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
// success: '',
|
|
||||||
// fail: '',
|
|
||||||
form: new Form({
|
form: new Form({
|
||||||
lang: this.$root.$i18n.locale,
|
lang: this.$root.$i18n.locale,
|
||||||
showTokenAsDot: this.$root.appSettings.showTokenAsDot,
|
showTokenAsDot: this.$root.appSettings.showTokenAsDot,
|
||||||
closeTokenOnCopy: this.$root.appSettings.closeTokenOnCopy,
|
closeTokenOnCopy: this.$root.appSettings.closeTokenOnCopy,
|
||||||
useBasicQrcodeReader: this.$root.appSettings.useBasicQrcodeReader,
|
useBasicQrcodeReader: this.$root.appSettings.useBasicQrcodeReader,
|
||||||
|
showAccountsIcons: this.$root.appSettings.showAccountsIcons,
|
||||||
displayMode: this.$root.appSettings.displayMode,
|
displayMode: this.$root.appSettings.displayMode,
|
||||||
}),
|
}),
|
||||||
langs: [
|
langs: [
|
||||||
|
@ -45,6 +45,10 @@ return [
|
|||||||
],
|
],
|
||||||
'grid' => 'Grid',
|
'grid' => 'Grid',
|
||||||
'list' => 'List',
|
'list' => 'List',
|
||||||
|
'show_accounts_icons' => [
|
||||||
|
'label' => 'Show icons',
|
||||||
|
'help' => 'Show icons accounts in the main view'
|
||||||
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,6 +45,10 @@ return [
|
|||||||
],
|
],
|
||||||
'grid' => 'Grille',
|
'grid' => 'Grille',
|
||||||
'list' => 'Liste',
|
'list' => 'Liste',
|
||||||
|
'show_accounts_icons' => [
|
||||||
|
'label' => 'Afficher les icônes',
|
||||||
|
'help' => 'Affiche les icônes des comptes dans la vue principale'
|
||||||
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user