new version of budget view and fixes

This commit is contained in:
xds
2025-02-13 14:23:33 +03:00
parent adc254a7fc
commit 9cf3b8ef82
6 changed files with 68 additions and 75 deletions

View File

@@ -16,7 +16,7 @@
<TransactionForm v-if="visible" :visible="visible"
:transaction-type="drawerStore.transactionType ? drawerStore.transactionType : 'INSTANT'"
:category-type="drawerStore.categoryType ? drawerStore.categoryType : 'EXPENSE'" @close-drawer="closeDrawer"/>
:category-type="drawerStore.categoryType ? drawerStore.categoryType : 'EXPENSE'" :categoryId="drawerStore.categoryId" @close-drawer="closeDrawer"/>
</div>
</template>
@@ -35,6 +35,7 @@ import TransactionForm from "@/components/transactions/TransactionForm.vue";
const drawerStore = useDrawerStore();
const visible = computed(() => drawerStore.visible);
const closeDrawer = () => {
drawerStore.setVisible(false);