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() {
|
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]
|
||||||
|
|
Loading…
Reference in a new issue