Removed proceedings from Cause List

Max 5 hearings in Cause List
This commit is contained in:
Amritanshu Agrawal 2021-01-26 09:39:35 +05:30
parent c12aa6ba91
commit d2cd07951a
2 changed files with 1 additions and 14 deletions

View File

@ -82,12 +82,6 @@
<mat-cell *matCellDef="let row">{{ bench(row) }}</mat-cell>
</ng-container>
<!-- Proceedings Column -->
<ng-container matColumnDef="proceedings">
<mat-header-cell *matHeaderCellDef>Proceedings</mat-header-cell>
<mat-cell *matCellDef="let row">{{ proceedings(row) }}</mat-cell>
</ng-container>
<!-- Next Hearing Date Column -->
<ng-container matColumnDef="nextHearingDate">
<mat-header-cell *matHeaderCellDef>Next Hearing Date</mat-header-cell>

View File

@ -31,7 +31,6 @@ export class CauseListComponent implements OnInit {
'forum',
'courtAndItemNumber',
'bench',
'proceedings',
'nextHearingDate',
'appearOnBehalfOf',
'otherHearingDates',
@ -75,11 +74,6 @@ export class CauseListComponent implements OnInit {
return hearing.bench;
}
proceedings(row: Case): string {
const [hearing] = row.hearings;
return hearing.proceedings;
}
nextHearingDate(row: Case): string {
const [hearing] = row.hearings;
return hearing.nextHearingDate || '';
@ -89,6 +83,7 @@ export class CauseListComponent implements OnInit {
return row.hearings
.map((x) => x.nextHearingDate)
.filter((x) => !!x)
.slice(0, 5)
.join(', ');
}
@ -125,7 +120,6 @@ export class CauseListComponent implements OnInit {
'Forum',
'Court / Item Number',
'Bench',
'Proceedings',
'Next Hearing',
'On Behalf of',
'Other Hearings',
@ -139,7 +133,6 @@ export class CauseListComponent implements OnInit {
row.court?.name || '',
`${this.courtNumber(row)} / ${this.itemNumber(row)}`,
this.bench(row),
this.proceedings(row),
this.nextHearingDate(row),
row.appearOnBehalfOf,
this.otherHearingDates(row),