don't allow show the transaction detail when the transaction type is modify balance

This commit is contained in:
MaysWind
2023-08-21 23:35:59 +08:00
parent 21f5ef469b
commit 2c7193efea
+6 -1
View File
@@ -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