Move showMenu to store

This commit is contained in:
jacob1123 committed 2022-01-31 14:43:20 +00:00
1 parent f091ce8945
commit 136f15badc
2 files changed
+6 -7

No files matched your search

+4
View File
@@ -8,6 +8,7 @@ const store = createStore({
Token: null,
User: null
},
ShowMenu: null,
Budgets: {},
CurrentBudgetID: null,
Accounts: [],
@@ -18,6 +19,9 @@ const store = createStore({
}
},
mutations: {
toggleMenu(state) {
state.ShowMenu = !state.ShowMenu;
},
initializeStore(state) {
const store = localStorage.getItem("store");
if(store){