mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 11:47:53 +02:00
Use FormToogle for the Display Mode option
This commit is contained in:
parent
6558eca8d9
commit
3926e0950e
4
resources/js/packages/fontawesome.js
vendored
4
resources/js/packages/fontawesome.js
vendored
@ -21,6 +21,8 @@ import {
|
|||||||
faLayerGroup,
|
faLayerGroup,
|
||||||
faMinusCircle,
|
faMinusCircle,
|
||||||
faExclamationCircle,
|
faExclamationCircle,
|
||||||
|
faTh,
|
||||||
|
faList,
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -46,6 +48,8 @@ library.add(
|
|||||||
faLayerGroup,
|
faLayerGroup,
|
||||||
faMinusCircle,
|
faMinusCircle,
|
||||||
faExclamationCircle,
|
faExclamationCircle,
|
||||||
|
faTh,
|
||||||
|
faList,
|
||||||
);
|
);
|
||||||
|
|
||||||
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
@ -5,7 +5,7 @@
|
|||||||
<!-- Language -->
|
<!-- Language -->
|
||||||
<form-select :options="langs" :form="form" fieldName="lang" :label="$t('settings.forms.language.label')" :help="$t('settings.forms.language.help')" />
|
<form-select :options="langs" :form="form" fieldName="lang" :label="$t('settings.forms.language.label')" :help="$t('settings.forms.language.help')" />
|
||||||
<!-- display mode -->
|
<!-- display mode -->
|
||||||
<form-select :options="layouts" :form="form" fieldName="displayMode" :label="$t('settings.forms.display_mode.label')" :help="$t('settings.forms.display_mode.help')" />
|
<form-toggle :choices="layouts" :form="form" fieldName="displayMode" :label="$t('settings.forms.display_mode.label')" :help="$t('settings.forms.display_mode.help')" />
|
||||||
<!-- show icon -->
|
<!-- show icon -->
|
||||||
<form-checkbox :form="form" fieldName="showAccountsIcons" :label="$t('settings.forms.show_accounts_icons.label')" :help="$t('settings.forms.show_accounts_icons.help')" />
|
<form-checkbox :form="form" fieldName="showAccountsIcons" :label="$t('settings.forms.show_accounts_icons.label')" :help="$t('settings.forms.show_accounts_icons.help')" />
|
||||||
<!-- default group -->
|
<!-- default group -->
|
||||||
@ -51,8 +51,8 @@
|
|||||||
{ text: this.$t('languages.fr'), value: 'fr' },
|
{ text: this.$t('languages.fr'), value: 'fr' },
|
||||||
],
|
],
|
||||||
layouts: [
|
layouts: [
|
||||||
{ text: this.$t('settings.forms.grid'), value: 'grid' },
|
{ text: this.$t('settings.forms.grid'), value: 'grid', icon: 'th' },
|
||||||
{ text: this.$t('settings.forms.list'), value: 'list' },
|
{ text: this.$t('settings.forms.list'), value: 'list', icon: 'list' },
|
||||||
],
|
],
|
||||||
kickUserAfters: [
|
kickUserAfters: [
|
||||||
{ text: this.$t('settings.forms.never'), value: '0' },
|
{ text: this.$t('settings.forms.never'), value: '0' },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user