Migrate farther
This commit is contained in:
1 parent
2d0737a10c
commit
08330ce33c
3 files changed
+21
-25
No files matched your search
@@ -59,31 +59,6 @@ export const store = createStore<State>({
|
||||
await dispatch(FETCH_BUDGET, budgetid)
|
||||
},
|
||||
},
|
||||
getters: {
|
||||
AuthHeaders(state) {
|
||||
return {
|
||||
'Authorization': 'Bearer ' + state.Session.Token
|
||||
}
|
||||
},
|
||||
CurrentBudget(state) : Budget | undefined {
|
||||
if (state.CurrentBudgetID == null)
|
||||
return undefined;
|
||||
|
||||
return state.Budgets.get(state.CurrentBudgetID);
|
||||
},
|
||||
CurrentBudgetID(state) : string | undefined {
|
||||
return state.CurrentBudgetID;
|
||||
},
|
||||
CurrentBudgetName(state) : string {
|
||||
if (state.CurrentBudgetID == null)
|
||||
return "";
|
||||
|
||||
const currentBudget = state.Budgets.get(state.CurrentBudgetID);
|
||||
if(currentBudget != undefined)
|
||||
return currentBudget.Name;
|
||||
return "";
|
||||
},
|
||||
},
|
||||
plugins: [createLogger()],
|
||||
modules: {
|
||||
budget: budgetStore
|
||||
|
||||
Reference in new issue
Block a user