Save and restore ExpandMenu state
This commit is contained in:
parent
33bdfaddc4
commit
0579ec5106
@ -55,6 +55,7 @@ export const store = createStore<State>({
|
||||
state.Session = restoredState.Session;
|
||||
state.CurrentBudgetID = restoredState.CurrentBudgetID;
|
||||
state.ShowMenu = restoredState.ShowMenu;
|
||||
state.ExpandMenu = restoredState.ExpandMenu;
|
||||
|
||||
for (const budget of restoredState.Budgets || []) {
|
||||
state.Budgets.set(budget[0], budget[1]);
|
||||
@ -176,6 +177,7 @@ store.subscribe((mutation, state) => {
|
||||
// Accounts: [...state.Accounts],
|
||||
CurrentBudgetID: state.CurrentBudgetID,
|
||||
//CurrentAccountID: state.CurrentAccountID,
|
||||
ExpandMenu: state.ExpandMenu,
|
||||
ShowMenu: state.ShowMenu
|
||||
}
|
||||
localStorage.setItem("store", JSON.stringify(persistedState));
|
||||
|
Loading…
x
Reference in New Issue
Block a user