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

View file

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