forgot case when none is set

This commit is contained in:
Ali Gator 2022-01-13 14:10:44 +01:00
parent 59b102e5a7
commit 7c9e215f0b

View File

@ -35,13 +35,11 @@ export default {
updateActiveMenu(event) {
const elem = event.target
const value = elem.id
this.$store.commit('setActiveMenu', value)
if (value == this.activeMenu)
this.$store.commit('setActiveMenu', "")
else
this.$store.commit('setActiveMenu', value)
},
isActive(event) {
const elem = event.target
if (elem.id === this.activeMenu) return true
return false
}
}
}
</script>