- Current Account: hero header with navy gradient, pill tabs, Nexora card layout for general tab, txn-tab/chg-tab table styles, bank statement passbook - Fixed Deposits: fd-* prefixed hero header, KPI tiles, pill tab nav, nx-card general tab layout, txn-tab transactions, chg-tab charges - Recurring Deposits: rd-* prefixed hero header with three KPI tiles, pill tab nav, nx-card general tab layout, txn-tab transactions, chg-tab charges - Fix: removed broken FA4-format icon references from action menu buttons Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
/**
|
|
* Copyright since 2025 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
import { Component, inject } from '@angular/core';
|
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
import { Currency } from 'app/shared/models/general.model';
|
|
import { CurrencyPipe } from '@angular/common';
|
|
import { ExternalIdentifierComponent } from '../../../../shared/external-identifier/external-identifier.component';
|
|
import { DateFormatPipe } from '../../../../pipes/date-format.pipe';
|
|
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
|
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
|
|
|
@Component({
|
|
selector: 'mifosx-general-tab',
|
|
templateUrl: './general-tab.component.html',
|
|
styleUrls: ['./general-tab.component.scss'],
|
|
imports: [
|
|
...STANDALONE_SHARED_IMPORTS,
|
|
ExternalIdentifierComponent,
|
|
FaIconComponent,
|
|
CurrencyPipe,
|
|
DateFormatPipe
|
|
]
|
|
})
|
|
export class GeneralTabComponent {
|
|
private route = inject(ActivatedRoute);
|
|
private router = inject(Router);
|
|
|
|
fixedDepositsAccountData: any;
|
|
entityType: string;
|
|
currency: Currency;
|
|
|
|
constructor() {
|
|
this.route.parent.data.subscribe((data: { fixedDepositsAccountData: any }) => {
|
|
this.fixedDepositsAccountData = data.fixedDepositsAccountData;
|
|
this.currency = this.fixedDepositsAccountData.currency;
|
|
});
|
|
if (this.router.url.includes('clients')) {
|
|
this.entityType = 'Client';
|
|
} else if (this.router.url.includes('groups')) {
|
|
this.entityType = 'Group';
|
|
} else if (this.router.url.includes('centers')) {
|
|
this.entityType = 'Center';
|
|
}
|
|
}
|
|
}
|