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) { />