Fix to mark with strike the reversed FD Account transactions

This commit is contained in:
Jose Alberto Hernandez
2024-03-11 18:17:34 -06:00
committed by Jose Alberto Hernandez
parent 294ae1e340
commit c691658ed8
4 changed files with 90 additions and 80 deletions
@@ -1,10 +1,16 @@
<div class="container">
<span *ngIf="!viewAccountTransferData.reversed">
<button mat-raised-button color="warn" *mifosxHasPermission="'ADJUST_ACCOUNTTRANSFER'" >
<fa-icon icon="undo" class="m-r-10"></fa-icon>{{ 'labels.buttons.Undo' | translate}}
</button>
</span>
<mat-card>
<mat-card-content>
<div fxLayout="row wrap" fxLayout.lt-md="column">
<div fxFlex="100%" [ngClass]="transactionColor()"></div>
<h3 class="mat-h3" fxFlexFill>{{"labels.heading.Transaction Details" | translate}}</h3>
@@ -35,4 +35,8 @@ export class ViewAccountTransferComponent {
this.location.back();
}
transactionColor(): string {
return this.viewAccountTransferData.reversed ? 'undo' : 'active';
}
}