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> <mat-cell *matCellDef="let row">{{ bench(row) }}</mat-cell>
</ng-container> </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 --> <!-- Next Hearing Date Column -->
<ng-container matColumnDef="nextHearingDate"> <ng-container matColumnDef="nextHearingDate">
<mat-header-cell *matHeaderCellDef>Next Hearing Date</mat-header-cell> <mat-header-cell *matHeaderCellDef>Next Hearing Date</mat-header-cell>

View File

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