Skip to content

Commit

Permalink
Fixed Deposit account Transaction tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alberto Hernandez authored and adamsaghy committed Nov 30, 2023
1 parent 4271ca9 commit 6083af0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ <h3> {{"labels.heading.Account Overview" | translate}} </h3>
[active]="IRC.isActive">
{{"labels.inputs.Interest Rate Chart" | translate }}
</a>
<a mat-tab-link [routerLink]="['./transactions']" routerLinkActive #transactions="routerLinkActive"
[active]="transactions.isActive">
{{"labels.inputs.Transactions" | translate }}
</a>
<span *ngIf="showTransactions">
<a mat-tab-link [routerLink]="['./transactions']" routerLinkActive #transactions="routerLinkActive"
[active]="transactions.isActive">
{{"labels.inputs.Transactions" | translate }}
</a>
</span>
<a mat-tab-link [routerLink]="['./charges']" routerLinkActive #charges="routerLinkActive"
[active]="charges.isActive">
{{"labels.inputs.Charges" | translate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class FixedDepositAccountViewComponent implements OnInit {
/** Entity Type */
entityType: string;
currency: Currency;
showTransactions = false;

/**
* Fetches fixed deposits account data from `resolve`
Expand All @@ -54,6 +55,8 @@ export class FixedDepositAccountViewComponent implements OnInit {
this.fixedDepositsAccountData = data.fixedDepositsAccountData;
this.savingsDatatables = data.savingsDatatables;
this.currency = this.fixedDepositsAccountData.currency;
const status: any = data.fixedDepositsAccountData.status;
this.showTransactions = (status.id >= 300);
});
if (this.router.url.includes('clients')) {
this.entityType = 'Client';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="tab-container mat-typography" *ngIf="showTransactionsData">
<div class="tab-container mat-typography">

<div fxLayoutAlign="start">
<div class="m-b-20">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import { ActivatedRoute, Router } from '@angular/router';
})
export class TransactionsTabComponent implements OnInit {

/** Fixed Deposits Account Status */
status: string;
showTransactionsData = false;
/** Transactions Data */
transactionsData: any;
/** Columns to be displayed in transactions table. */
Expand All @@ -32,8 +29,6 @@ export class TransactionsTabComponent implements OnInit {
private router: Router) {
this.route.parent.data.subscribe((data: { fixedDepositsAccountData: any }) => {
this.transactionsData = data.fixedDepositsAccountData.transactions;
this.status = data.fixedDepositsAccountData.status.value;
this.showTransactionsData = (this.status === 'Active');
});
}

Expand Down
Binary file modified src/assets/images/recurring-deposits_account_placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6083af0

Please sign in to comment.