Hide menu on mobile after navigating
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-11-21 22:31:34 +01:00
parent 3343b1c240
commit b9eeec0125
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 0 deletions

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>