diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index 9fa4ec39f..6957f34d7 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -124,11 +124,16 @@ init(async (launch, os) => { require('./views/components'); require('./views/widgets'); + os.store.commit('device/set', { + key: 'inDeckMode', + value: os.store.getters.isSignedIn && os.store.state.device.deckMode && document.location.pathname === '/' + }); + // Init router const router = new VueRouter({ mode: 'history', routes: [ - os.store.getters.isSignedIn && os.store.state.device.deckMode && document.location.pathname === '/' + os.store.state.device.inDeckMode ? { path: '/', name: 'index', component: MkDeck, children: [ { path: '/@:user', name: 'user', component: () => import('./views/deck/deck.user-column.vue').then(m => m.default), children: [ { path: '', name: 'user', component: () => import('./views/deck/deck.user-column.home.vue').then(m => m.default) }, diff --git a/src/client/app/desktop/views/components/ui.header.account.vue b/src/client/app/desktop/views/components/ui.header.account.vue index d94549c2a..37983285c 100644 --- a/src/client/app/desktop/views/components/ui.header.account.vue +++ b/src/client/app/desktop/views/components/ui.header.account.vue @@ -63,7 +63,7 @@
{{ $t('@.deck') }}
-