fix: replace displayName column with separate firstname and lastname columns (#2883)
fix the prettier check
This commit is contained in:
-1
@@ -567,7 +567,6 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
|||||||
required: true,
|
required: true,
|
||||||
order: 2
|
order: 2
|
||||||
})
|
})
|
||||||
|
|
||||||
];
|
];
|
||||||
const data = {
|
const data = {
|
||||||
title: 'Add Disbursement Details',
|
title: 'Add Disbursement Details',
|
||||||
|
|||||||
@@ -28,9 +28,14 @@
|
|||||||
|
|
||||||
<div #tableEmployees class="mat-elevation-z8">
|
<div #tableEmployees class="mat-elevation-z8">
|
||||||
<table mat-table [dataSource]="dataSource" matSort>
|
<table mat-table [dataSource]="dataSource" matSort>
|
||||||
<ng-container matColumnDef="displayName">
|
<ng-container matColumnDef="firstname">
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.name' | translate }}</th>
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.First Name' | translate }}</th>
|
||||||
<td mat-cell *matCellDef="let employee">{{ employee.displayName }}</td>
|
<td mat-cell *matCellDef="let employee">{{ employee.firstname }}</td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="lastname">
|
||||||
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Last Name' | translate }}</th>
|
||||||
|
<td mat-cell *matCellDef="let employee">{{ employee.lastname }}</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container matColumnDef="isLoanOfficer">
|
<ng-container matColumnDef="isLoanOfficer">
|
||||||
|
|||||||
@@ -63,7 +63,8 @@ export class EmployeesComponent implements OnInit, AfterViewInit {
|
|||||||
employeesData: any;
|
employeesData: any;
|
||||||
/** Columns to be displayed in employees table. */
|
/** Columns to be displayed in employees table. */
|
||||||
displayedColumns: string[] = [
|
displayedColumns: string[] = [
|
||||||
'displayName',
|
'firstname',
|
||||||
|
'lastname',
|
||||||
'isLoanOfficer',
|
'isLoanOfficer',
|
||||||
'officeName',
|
'officeName',
|
||||||
'isActive'
|
'isActive'
|
||||||
|
|||||||
Reference in New Issue
Block a user