linting and formating
This commit is contained in:
@ -10,9 +10,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapWritableState } from 'pinia'
|
||||
import { mapWritableState } from "pinia";
|
||||
import { globalStore } from "../stores/index.js";
|
||||
|
||||
|
||||
export default {
|
||||
name: "MenuRow",
|
||||
props: {
|
||||
@ -23,14 +23,14 @@
|
||||
},
|
||||
computed: {
|
||||
// TODO: should be passed as a props/slot, not in a store
|
||||
...mapWritableState(globalStore, ["activeMenu"])
|
||||
...mapWritableState(globalStore, ["activeMenu"]),
|
||||
},
|
||||
methods: {
|
||||
updateActiveMenu(event) {
|
||||
const elem = event.target;
|
||||
const value = elem.id;
|
||||
if (value == this.activeMenu) this.activeMenu = ""
|
||||
else this.activeMenu = value
|
||||
if (value == this.activeMenu) this.activeMenu = "";
|
||||
else this.activeMenu = value;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user