Hide menu on mobile after navigating

This commit is contained in:
kolaente 2020-11-21 22:31:34 +01:00
parent 3343b1c240
commit b9eeec0125
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -59,6 +59,7 @@ export default {
doStuffAfterRoute() {
// this.setTitle('') // Reset the title if the page component does not set one itself
this.$store.commit(IS_FULLPAGE, false)
this.hideMenuOnMobile()
this.resetCurrentList()
},
resetCurrentList() {
@ -103,6 +104,11 @@ export default {
}
})
},
hideMenuOnMobile() {
if (window.innerWidth < 769) {
this.$store.commit(MENU_ACTIVE, false)
}
},
},
}
</script>