Removed proceedings from Cause List
Max 5 hearings in Cause List
This commit is contained in:
parent
c12aa6ba91
commit
d2cd07951a
@ -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>
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user