Move showMenu to store
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user