update balance when transaction is reverted

This commit is contained in:
Tim Gröger 2023-05-17 14:36:27 +02:00
parent 59a430bea8
commit 9584774d18
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@
</q-list>
<q-list v-if="show">
<div v-for="(transaction, index) in transactions" :key="index" class="col-sm-12">
<balance-transaction v-model:transaction="transactions[index]" />
<balance-transaction v-model:transaction="transactions[index]" @update:transaction="updateBalance" />
</div>
</q-list>
</q-drawer>
@ -128,6 +128,7 @@ export default defineComponent({
tabs,
transactions,
show,
updateBalance: () => balanceStore.getBalance(mainStore.currentUser),
};
},
});