Remove closed account from sidebar
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Jan Bader 2022-03-02 21:22:15 +00:00
parent 29f534bf10
commit c7a8adb3ab

View File

@ -128,6 +128,10 @@ export const useAccountStore = defineStore("budget/account", {
const result = await POST("/account/" + accountid, JSON.stringify({ name: name, onBudget: onBudget, isOpen: isOpen }));
const response = await result.json();
useBudgetsStore().MergeBudgetingData(response);
if(!isOpen) {
this.Accounts.delete(accountid);
}
},
addCategoriesForMonth(year: number, month: number, categories: Category[]): void {
this.$patch((state) => {