update balance when transaction is reverted
This commit is contained in:
parent
59a430bea8
commit
9584774d18
|
@ -28,7 +28,7 @@
|
||||||
</q-list>
|
</q-list>
|
||||||
<q-list v-if="show">
|
<q-list v-if="show">
|
||||||
<div v-for="(transaction, index) in transactions" :key="index" class="col-sm-12">
|
<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>
|
</div>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-drawer>
|
</q-drawer>
|
||||||
|
@ -128,6 +128,7 @@ export default defineComponent({
|
||||||
tabs,
|
tabs,
|
||||||
transactions,
|
transactions,
|
||||||
show,
|
show,
|
||||||
|
updateBalance: () => balanceStore.getBalance(mainStore.currentUser),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue