diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-04-01 19:57:31 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-04-01 19:57:31 +0000 |
| commit | ac28e8c2f981b6584f0103e10b0a5f5b025fcaae (patch) | |
| tree | a12eb0dff03ce7cbfcd6f5bd8027738662c9d973 /src/boot/after_store.js | |
| parent | a595febcb86cfeda927128b8a36756db6457e58d (diff) | |
| parent | 89c944853253463b3a0173425b35f939ac503676 (diff) | |
Merge branch 'feature/mobile-improvements-3' into 'develop'
Mobile notifications in nav bar, separate mobile navbar to its own component
See merge request pleroma/pleroma-fe!703
Diffstat (limited to 'src/boot/after_store.js')
| -rw-r--r-- | src/boot/after_store.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index b6d292dc..862a534d 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -1,8 +1,8 @@ import Vue from 'vue' import VueRouter from 'vue-router' import routes from './routes' - import App from '../App.vue' +import { windowWidth } from '../services/window_utils/window_utils' const getStatusnetConfig = async ({ store }) => { try { @@ -252,6 +252,9 @@ const afterStoreSetup = async ({ store, i18n }) => { }) } + const width = windowWidth() + store.dispatch('setMobileLayout', width <= 800) + // Now we can try getting the server settings and logging in await Promise.all([ checkOAuthToken({ store }), |
