Pass is_open to API from EditAccount

This commit is contained in:
jacob1123 committed 2022-03-02 21:16:06 +00:00
1 parent f26ee8f472
commit a0cabbf4f7
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -124,8 +124,8 @@ export const useAccountStore = defineStore("budget/account", {
return;
this.addCategoriesForMonth(year, month, response.Categories);
},
async EditAccount(accountid: string, name: string, onBudget: boolean) {
const result = await POST("/account/" + accountid, JSON.stringify({ name: name, onBudget: onBudget }));
async EditAccount(accountid: string, name: string, onBudget: boolean, isOpen: boolean) {
const result = await POST("/account/" + accountid, JSON.stringify({ name: name, onBudget: onBudget, isOpen: isOpen }));
const response = await result.json();
useBudgetsStore().MergeBudgetingData(response);
},