Skip to content

Commit 4d181b5

Browse files
fix: replace displayName column with separate firstname and lastname columns (#2883)
fix the prettier check
1 parent 9b07218 commit 4d181b5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
567567
required: true,
568568
order: 2
569569
})
570-
571570
];
572571
const data = {
573572
title: 'Add Disbursement Details',

src/app/organization/employees/employees.component.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@
2828

2929
<div #tableEmployees class="mat-elevation-z8">
3030
<table mat-table [dataSource]="dataSource" matSort>
31-
<ng-container matColumnDef="displayName">
32-
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.name' | translate }}</th>
33-
<td mat-cell *matCellDef="let employee">{{ employee.displayName }}</td>
31+
<ng-container matColumnDef="firstname">
32+
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.First Name' | translate }}</th>
33+
<td mat-cell *matCellDef="let employee">{{ employee.firstname }}</td>
34+
</ng-container>
35+
36+
<ng-container matColumnDef="lastname">
37+
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Last Name' | translate }}</th>
38+
<td mat-cell *matCellDef="let employee">{{ employee.lastname }}</td>
3439
</ng-container>
3540

3641
<ng-container matColumnDef="isLoanOfficer">

src/app/organization/employees/employees.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export class EmployeesComponent implements OnInit, AfterViewInit {
6363
employeesData: any;
6464
/** Columns to be displayed in employees table. */
6565
displayedColumns: string[] = [
66-
'displayName',
66+
'firstname',
67+
'lastname',
6768
'isLoanOfficer',
6869
'officeName',
6970
'isActive'

0 commit comments

Comments
 (0)