Hide the navigation on mobile in the navigation component

This commit is contained in:
kolaente 2020-11-01 17:34:28 +01:00
parent a3315f6408
commit ed93848b34
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 0 deletions

View File

@ -157,6 +157,12 @@ export default {
beforeCreate() {
this.$store.dispatch('namespaces/loadNamespaces')
},
created() {
// Hide the menu by default on mobile
if (window.innerWidth < 770) {
this.$store.commit(MENU_ACTIVE, false)
}
},
methods: {
toggleFavoriteList(list) {
// The favorites pseudo list is always favorite