diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-07-19 11:36:35 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-07-19 11:36:35 +0900 |
| commit | 42d293ee60c671ba424671d49072fc6c880d44b0 (patch) | |
| tree | a053b98c9fa27ae2fecf618b1763c75ce645f1ee /src/client/ui/default.sidebar.vue | |
| parent | 認証の修正 (#7597) (diff) | |
| download | misskey-42d293ee60c671ba424671d49072fc6c880d44b0.tar.gz misskey-42d293ee60c671ba424671d49072fc6c880d44b0.tar.bz2 misskey-42d293ee60c671ba424671d49072fc6c880d44b0.zip | |
Classic UI
Diffstat (limited to 'src/client/ui/default.sidebar.vue')
| -rw-r--r-- | src/client/ui/default.sidebar.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/ui/default.sidebar.vue b/src/client/ui/default.sidebar.vue index c7e2d30c7a..2e0336878d 100644 --- a/src/client/ui/default.sidebar.vue +++ b/src/client/ui/default.sidebar.vue @@ -45,7 +45,7 @@ import { defineComponent } from 'vue'; import { host } from '@client/config'; import { search } from '@client/scripts/search'; import * as os from '@client/os'; -import { sidebarDef } from '@client/sidebar'; +import { menuDef } from '@client/menu'; import { getAccounts, addAccount, login } from '@client/account'; import MkButton from '@client/components/ui/button.vue'; import { StickySidebar } from '@client/scripts/sticky-sidebar'; @@ -62,7 +62,7 @@ export default defineComponent({ host: host, accounts: [], connection: null, - menuDef: sidebarDef, + menuDef: menuDef, iconOnly: false, settingsWindowed: false, }; @@ -83,7 +83,7 @@ export default defineComponent({ }, watch: { - '$store.reactiveState.sidebarDisplay.value'() { + '$store.reactiveState.menuDisplay.value'() { this.calcViewState(); }, @@ -108,7 +108,7 @@ export default defineComponent({ methods: { calcViewState() { - this.iconOnly = (window.innerWidth <= 1400) || (this.$store.state.sidebarDisplay === 'icon'); + this.iconOnly = (window.innerWidth <= 1400) || (this.$store.state.menuDisplay === 'sideIcon'); this.settingsWindowed = (window.innerWidth > 1400); }, |