chore: simplify MENU_ACTIVE mutation

This commit is contained in:
Dominik Pschenitschni 2021-10-16 16:38:51 +02:00
parent 12a3c238b8
commit 1d43d1bd65
No known key found for this signature in database
GPG Key ID: B257AC0149F43A77
1 changed files with 1 additions and 5 deletions

View File

@ -228,11 +228,7 @@ export default {
},
resize() {
// Hide the menu by default on mobile
if (window.innerWidth < 770) {
this.$store.commit(MENU_ACTIVE, false)
} else {
this.$store.commit(MENU_ACTIVE, true)
}
this.$store.commit(MENU_ACTIVE, window.innerWidth >= 770)
},
toggleLists(namespaceId) {
this.listsVisible[namespaceId] = !this.listsVisible[namespaceId]