Handle more of categories locally and update Modal #17

Merged
jacob1123 merged 8 commits from categories-improvements into master 2022-02-23 22:58:34 +01:00
Showing only changes of commit 1d81aa2fb3 - Show all commits

View File

@ -102,6 +102,8 @@ export const useAccountStore = defineStore("budget/account", {
async FetchMonthBudget(budgetid: string, year: number, month: number) {
const result = await GET("/budget/" + budgetid + "/" + year + "/" + month);
const response = await result.json();
if(response.Categories == undefined || response.Categories.length <= 0)
return;
this.addCategoriesForMonth(year, month, response.Categories);
},
addCategoriesForMonth(year: number, month: number, categories: Category[]): void {