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

@@ -2,14 +2,14 @@
<div class="card flex justify-center h-fit">
<DrawerForm v-if="isDesktop" :visible="visible" :isEditing="isEditing" @close-drawer="closeDrawer" >
<template #default>
<TransactionFormContent :transaction="props.transaction" :transaction-type="transactionType" :category-type="categoryType" @close-drawer="closeDrawer" @create-transaction="transactionUpdated('create')"
<TransactionFormContent :transaction="props.transaction" :transaction-type="transactionType" :category-type="categoryType" :categoryId="categoryId" @close-drawer="closeDrawer" @create-transaction="transactionUpdated('create')"
@delete-transaction="transactionUpdated" @transaction-updated="transactionUpdated" />
</template>
</DrawerForm>
<PopUp v-else :header="'Создать транзакцию'" @close-popup="closeDrawer">
<template #default>
<TransactionFormContent :transaction="props.transaction" :transaction-type="transactionType" :category-type="categoryType" @close-drawer="closeDrawer" @create-transaction="transactionUpdated"
<TransactionFormContent :transaction="props.transaction" :transaction-type="transactionType" :category-type="categoryType" :categoryId="categoryId" @close-drawer="closeDrawer" @create-transaction="transactionUpdated"
@delete-transaction="transactionUpdated" @transaction-updated="transactionUpdated" />
</template>
</PopUp>
@@ -31,6 +31,7 @@ const props = defineProps({
},
transactionType: String,
categoryType: String,
categoryId: String,
})
const isDesktop = ref(window.innerWidth >= 1024);