small refactoring to uncouple tab-switcher from settings modal
This commit is contained in:
parent
b0789fd6fd
commit
33777fab47
3 changed files with 14 additions and 4 deletions
|
@ -53,6 +53,9 @@ const SettingsModalContent = {
|
|||
},
|
||||
open () {
|
||||
return this.$store.state.interface.settingsModalState !== 'hidden'
|
||||
},
|
||||
bodyLock () {
|
||||
return this.$store.state.interface.settingsModalState === 'visible'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
class="settings_tab-switcher"
|
||||
:side-tab-bar="true"
|
||||
:scrollable-tabs="true"
|
||||
:body-scroll-lock="bodyLock"
|
||||
>
|
||||
<div
|
||||
:label="$t('settings.general')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue