File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 7979 </NcRadioGroupButton >
8080 </NcRadioGroup >
8181
82- <NcAppSettingsSection id = " compactMode " :name = " t('mail', 'Compact Mode') " >
82+ <NcFormBox >
8383 <NcFormBoxSwitch
84- :value =" compactMode"
84+ v-model =" compactMode"
8585 :label =" t('mail', 'Compact mode')"
8686 :description =" t('mail', 'Compact mode')"
87- @update:value =" compactMode = $event" />
88- </NcAppSettingsSection >
87+ @update:modelValue =" compactMode = $event" />
88+ {{ compactMode }}
89+ </NcFormBox >
8990
9091 <NcRadioGroup :model-value =" sortOrder" :label =" t('mail', 'Sorting')" @update:modelValue =" onSortByDate" >
9192 <NcRadioGroupButton :label =" t('mail', 'Newest first')" value =" newest" />
@@ -472,7 +473,7 @@ export default {
472473
473474 compactMode: {
474475 get () {
475- return this .mainStore .getPreference (' compact-mode' , false )
476+ return this .mainStore .getPreference (' compact-mode' , ' false' ) === ' true '
476477 },
477478
478479 set (value ) {
@@ -548,7 +549,7 @@ export default {
548549 try {
549550 await this .mainStore .savePreference ({
550551 key: ' compact-mode' ,
551- value,
552+ value: value ? ' true ' : ' false ' ,
552553 })
553554 } catch (error) {
554555 Logger .error (' Could not save preferences' , { error })
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export default {
291291 },
292292
293293 compactMode () {
294- return this .mainStore .getPreference (' compact-mode' , false )
294+ return this .mainStore .getPreference (' compact-mode' , ' false' ) === ' true '
295295 },
296296
297297 horizontalListMinWidth () {
You can’t perform that action at this time.
0 commit comments