chore: simplify MENU_ACTIVE mutation
This commit is contained in:
parent
12a3c238b8
commit
1d43d1bd65
1 changed files with 1 additions and 5 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue