pinia-migration #2

Merged
gator merged 13 commits from pinia-migration into master 2022-12-02 18:22:54 +01:00
2 changed files with 4 additions and 7 deletions
Showing only changes of commit 7f0f1dfdd7 - Show all commits

View File

@ -10,9 +10,6 @@
</template>
<script>
import { mapWritableState } from "pinia";
import { globalStore } from "../stores/index.js";
export default {
name: "MenuRow",
props: {
@ -21,9 +18,10 @@
default: "",
},
},
computed: {
// TODO: should be passed as a props/slot, not in a store
...mapWritableState(globalStore, ["activeMenu"]),
data() {
return {
activeMenu: "",
};
},
methods: {
updateActiveMenu(event) {

View File

@ -27,7 +27,6 @@ export const globalStore = defineStore("globalStore", {
boardHeight: 0,
refreshRate: 300,
initial1dState: "onecell",
activeMenu: "",
drawingDirection: "y",
lastBoard: {},
draw1d: false,