merge feature/update_code and feature/UI-MFA-Product branch code
This commit is contained in:
@@ -23,7 +23,7 @@ import { CfcfrmsService } from '../cfcfrms.service';
|
||||
import { CfrLookupResponse, CfrRecord } from '../models/cfcfrms.models';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-cfr-lookup',
|
||||
selector: 'mifosx-cfcfrms-cfr-lookup',
|
||||
standalone: true,
|
||||
templateUrl: './cfr-lookup.component.html',
|
||||
styleUrls: ['./cfr-lookup.component.scss'],
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{ 'labels.menus.Complaint Information' | translate }}</mat-card-title>
|
||||
<span class="spacer"></span>
|
||||
<cfcfrms-status-badge [status]="complaint.status"></cfcfrms-status-badge>
|
||||
<mifosx-cfcfrms-status-badge [status]="complaint.status"></mifosx-cfcfrms-status-badge>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<div class="info-grid">
|
||||
@@ -180,7 +180,7 @@
|
||||
<form [formGroup]="actionForm" (ngSubmit)="onSubmitAction()">
|
||||
<div class="current-status">
|
||||
<span class="label">{{ 'labels.text.Current Status' | translate }}:</span>
|
||||
<cfcfrms-status-badge [status]="complaint.status"></cfcfrms-status-badge>
|
||||
<mifosx-cfcfrms-status-badge [status]="complaint.status"></mifosx-cfcfrms-status-badge>
|
||||
</div>
|
||||
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
|
||||
@@ -29,7 +29,7 @@ import { ConfirmDialogComponent } from '../components/confirm-dialog/confirm-dia
|
||||
import { Complaint, ComplaintStatus, TimelineEvent } from '../models/cfcfrms.models';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-complaint-detail',
|
||||
selector: 'mifosx-cfcfrms-complaint-detail',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
<ng-container matColumnDef="status">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'labels.text.Status' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<cfcfrms-status-badge [status]="row.status"></cfcfrms-status-badge>
|
||||
<mifosx-cfcfrms-status-badge [status]="row.status"></mifosx-cfcfrms-status-badge>
|
||||
</td>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="createdAt">
|
||||
|
||||
@@ -33,7 +33,7 @@ import { Complaint, ComplaintStatus } from '../models/cfcfrms.models';
|
||||
type FilterChip = 'ALL' | 'PENDING' | 'ACTIVE' | 'RESOLVED';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-complaint-list',
|
||||
selector: 'mifosx-cfcfrms-complaint-list',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { Component, Inject, inject } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
@@ -19,7 +19,7 @@ export interface ConfirmDialogData {
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-confirm-dialog',
|
||||
selector: 'mifosx-cfcfrms-confirm-dialog',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
@@ -46,10 +46,8 @@ export interface ConfirmDialogData {
|
||||
]
|
||||
})
|
||||
export class ConfirmDialogComponent {
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ConfirmDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: ConfirmDialogData
|
||||
) {}
|
||||
public dialogRef = inject(MatDialogRef<ConfirmDialogComponent>);
|
||||
public data = inject<ConfirmDialogData>(MAT_DIALOG_DATA);
|
||||
|
||||
onCancel(): void {
|
||||
this.dialogRef.close(false);
|
||||
|
||||
@@ -11,7 +11,7 @@ import { CommonModule } from '@angular/common';
|
||||
import { ComplaintStatus } from '../../models/cfcfrms.models';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-status-badge',
|
||||
selector: 'mifosx-cfcfrms-status-badge',
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
template: `
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
<ng-container matColumnDef="status">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'labels.text.Status' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<cfcfrms-status-badge [status]="row.status"></cfcfrms-status-badge>
|
||||
<mifosx-cfcfrms-status-badge [status]="row.status"></mifosx-cfcfrms-status-badge>
|
||||
</td>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="createdAt">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { Component, OnInit, inject, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
|
||||
import { Component, OnInit, inject, ViewChild, ElementRef } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
@@ -24,7 +24,7 @@ import { Complaint, DashboardStats, ComplaintStatus } from '../models/cfcfrms.mo
|
||||
Chart.register(...registerables);
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-dashboard',
|
||||
selector: 'mifosx-cfcfrms-dashboard',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
@@ -41,7 +41,7 @@ Chart.register(...registerables);
|
||||
templateUrl: './cfcfrms-dashboard.component.html',
|
||||
styleUrls: ['./cfcfrms-dashboard.component.scss']
|
||||
})
|
||||
export class CfcfrmsDashboardComponent implements OnInit, AfterViewInit {
|
||||
export class CfcfrmsDashboardComponent implements OnInit {
|
||||
private cfcfrmsService = inject(CfcfrmsService);
|
||||
|
||||
stats: DashboardStats;
|
||||
@@ -66,8 +66,6 @@ export class CfcfrmsDashboardComponent implements OnInit, AfterViewInit {
|
||||
this.loadData();
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {}
|
||||
|
||||
loadData(): void {
|
||||
this.isLoading = true;
|
||||
this.cfcfrmsService.getStats().subscribe({
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</div>
|
||||
<div class="lookup-row">
|
||||
<span>{{ 'labels.text.Current Status' | translate }}:</span>
|
||||
<cfcfrms-status-badge [status]="lookedUpComplaint.status"></cfcfrms-status-badge>
|
||||
<mifosx-cfcfrms-status-badge [status]="lookedUpComplaint.status"></mifosx-cfcfrms-status-badge>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import { ConfirmDialogComponent } from '../components/confirm-dialog/confirm-dia
|
||||
import { Complaint, EscalationResponse } from '../models/cfcfrms.models';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-escalate',
|
||||
selector: 'mifosx-cfcfrms-escalate',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
|
||||
@@ -25,7 +25,7 @@ import { CfcfrmsService } from '../cfcfrms.service';
|
||||
import { ConfirmDialogComponent } from '../components/confirm-dialog/confirm-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-fmr-submission',
|
||||
selector: 'mifosx-cfcfrms-fmr-submission',
|
||||
standalone: true,
|
||||
templateUrl: './fmr-submission.component.html',
|
||||
styleUrls: ['./fmr-submission.component.scss'],
|
||||
|
||||
@@ -24,7 +24,7 @@ import { CfcfrmsService } from '../cfcfrms.service';
|
||||
import { ConfirmDialogComponent } from '../components/confirm-dialog/confirm-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-report-fraud-txn',
|
||||
selector: 'mifosx-cfcfrms-report-fraud-txn',
|
||||
standalone: true,
|
||||
templateUrl: './report-fraud-txn.component.html',
|
||||
styleUrls: ['./report-fraud-txn.component.scss'],
|
||||
|
||||
@@ -23,7 +23,7 @@ import { CfcfrmsService } from '../cfcfrms.service';
|
||||
import { ConfirmDialogComponent } from '../components/confirm-dialog/confirm-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-report-mule',
|
||||
selector: 'mifosx-cfcfrms-report-mule',
|
||||
standalone: true,
|
||||
templateUrl: './report-mule.component.html',
|
||||
styleUrls: ['./report-mule.component.scss'],
|
||||
|
||||
@@ -24,7 +24,7 @@ import { CfcfrmsService } from '../cfcfrms.service';
|
||||
import { ConfirmDialogComponent } from '../components/confirm-dialog/confirm-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'cfcfrms-report-suspect',
|
||||
selector: 'mifosx-cfcfrms-report-suspect',
|
||||
standalone: true,
|
||||
templateUrl: './report-suspect.component.html',
|
||||
styleUrls: ['./report-suspect.component.scss'],
|
||||
|
||||
Reference in New Issue
Block a user