Move showMenu to store

This commit is contained in:
2022-01-31 14:43:20 +00:00
parent f091ce8945
commit 136f15badc
2 changed files with 6 additions and 7 deletions

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){