remove active menu from store
This commit is contained in:
parent
9cd0537717
commit
7f0f1dfdd7
@ -10,9 +10,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapWritableState } from "pinia";
|
|
||||||
import { globalStore } from "../stores/index.js";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MenuRow",
|
name: "MenuRow",
|
||||||
props: {
|
props: {
|
||||||
@ -21,9 +18,10 @@
|
|||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
data() {
|
||||||
// TODO: should be passed as a props/slot, not in a store
|
return {
|
||||||
...mapWritableState(globalStore, ["activeMenu"]),
|
activeMenu: "",
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateActiveMenu(event) {
|
updateActiveMenu(event) {
|
||||||
|
@ -27,7 +27,6 @@ export const globalStore = defineStore("globalStore", {
|
|||||||
boardHeight: 0,
|
boardHeight: 0,
|
||||||
refreshRate: 300,
|
refreshRate: 300,
|
||||||
initial1dState: "onecell",
|
initial1dState: "onecell",
|
||||||
activeMenu: "",
|
|
||||||
drawingDirection: "y",
|
drawingDirection: "y",
|
||||||
lastBoard: {},
|
lastBoard: {},
|
||||||
draw1d: false,
|
draw1d: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user