aboutsummaryrefslogtreecommitdiff
path: root/src/boot/after_store.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-04-01 19:57:31 +0000
committerShpuld Shpludson <shp@cock.li>2019-04-01 19:57:31 +0000
commitac28e8c2f981b6584f0103e10b0a5f5b025fcaae (patch)
treea12eb0dff03ce7cbfcd6f5bd8027738662c9d973 /src/boot/after_store.js
parenta595febcb86cfeda927128b8a36756db6457e58d (diff)
parent89c944853253463b3a0173425b35f939ac503676 (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.js5
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 }),