don't allow show the transaction detail when the transaction type is modify balance
This commit is contained in:
@@ -254,7 +254,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="transaction-table-row-data text-sm cursor-pointer"
|
<tr class="transaction-table-row-data text-sm"
|
||||||
|
:class="{ 'cursor-pointer': transaction.type !== allTransactionTypes.ModifyBalance }"
|
||||||
@click="show(transaction)">
|
@click="show(transaction)">
|
||||||
<td class="transaction-table-column-time">
|
<td class="transaction-table-column-time">
|
||||||
<div class="d-flex flex-column">
|
<div class="d-flex flex-column">
|
||||||
@@ -849,6 +850,10 @@ export default {
|
|||||||
show(transaction) {
|
show(transaction) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
|
if (transaction.type === self.allTransactionTypes.ModifyBalance) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
self.$refs.editDialog.open({
|
self.$refs.editDialog.open({
|
||||||
id: transaction.id,
|
id: transaction.id,
|
||||||
currentTransaction: transaction
|
currentTransaction: transaction
|
||||||
|
|||||||
Reference in New Issue
Block a user