linting and formating

This commit is contained in:
2022-12-02 17:11:34 +01:00
parent 2924994e7e
commit e4f433887b
9 changed files with 66 additions and 62 deletions

View File

@ -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;
},
},
};