ver 2
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<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"
|
||||
<TransactionFormContent :transaction="props.transaction" :transaction-type="transactionType" :category-type="categoryType" @close-drawer="closeDrawer" @create-transaction="transactionUpdated('create')"
|
||||
@delete-transaction="transactionUpdated" @transaction-updated="transactionUpdated" />
|
||||
</template>
|
||||
</DrawerForm>
|
||||
@@ -55,7 +55,8 @@ const closeDrawer = () => {
|
||||
emit('close-drawer');
|
||||
};
|
||||
|
||||
const transactionUpdated = () => {
|
||||
const transactionUpdated = (text) => {
|
||||
console.log(text)
|
||||
emit("transaction-updated");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user