update balance when transaction is reverted
This commit is contained in:
parent
59a430bea8
commit
9584774d18
|
@ -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),
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue