From 4fb3c2a335b3a17964cb829684777b56e702a2bd Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 2 Mar 2022 21:14:12 +0000 Subject: [PATCH] Show is_open in EditAccount --- web/src/dialogs/EditAccount.vue | 14 ++++++++++++-- web/src/stores/budget-account.ts | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/web/src/dialogs/EditAccount.vue b/web/src/dialogs/EditAccount.vue index 5816274..e2b33b4 100644 --- a/web/src/dialogs/EditAccount.vue +++ b/web/src/dialogs/EditAccount.vue @@ -3,12 +3,14 @@ import { computed, ref } from 'vue'; import Modal from '../components/Modal.vue'; import { useAccountStore } from '../stores/budget-account'; import Input from '../components/Input.vue'; +import Checkbox from '../components/Checkbox.vue'; const accountStore = useAccountStore(); const CurrentAccount = computed(() => accountStore.CurrentAccount); const accountName = ref(""); const accountOnBudget = ref(true); +const accountOpen = ref(true); function editAccount(e : any) { accountStore.EditAccount(CurrentAccount.value?.ID ?? "", accountName.value, accountOnBudget.value); @@ -17,6 +19,7 @@ function editAccount(e : any) { function openEditAccount(e : any) { accountName.value = CurrentAccount.value?.Name ?? ""; accountOnBudget.value = CurrentAccount.value?.OnBudget ?? true; + accountOpen.value = CurrentAccount.value?.IsOpen ?? true; } @@ -33,13 +36,20 @@ function openEditAccount(e : any) { />
-
+
+ + +
\ No newline at end of file diff --git a/web/src/stores/budget-account.ts b/web/src/stores/budget-account.ts index 21b0436..bf440a2 100644 --- a/web/src/stores/budget-account.ts +++ b/web/src/stores/budget-account.ts @@ -16,6 +16,7 @@ export interface Account { ID: string Name: string OnBudget: boolean + IsOpen: boolean ClearedBalance: number WorkingBalance: number ReconciledBalance: number