Skip to content
Snippets Groups Projects
Commit a09a17eb authored by trantzas's avatar trantzas
Browse files

Category property of services (list-service-inventory.component.html) is displayed properly

parent 114f03d0
No related branches found
No related tags found
2 merge requests!13Merging 2024Q2_RC into main, creating 2024Q2 Release,!6Resolve "Service Intentory list does not display category"
Pipeline #4488 passed
...@@ -32,9 +32,8 @@ ...@@ -32,9 +32,8 @@
<ng-container matColumnDef="category"> <ng-container matColumnDef="category">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Category </th> <th mat-header-cell *matHeaderCellDef mat-sort-header> Category </th>
<td mat-cell *matCellDef="let element"> <td mat-cell *matCellDef="let element">
<span *ngIf="element.category === 'ResourceFacingServiceSpecification' ">RFSS</span> <span>{{element.category}}</span>
<span *ngIf="element.category === 'CustomerFacingServiceSpecification' ">CFSS</span>
</td> </td>
</ng-container> </ng-container>
......
...@@ -48,7 +48,7 @@ export class ListServiceInventoryComponent implements OnInit { ...@@ -48,7 +48,7 @@ export class ListServiceInventoryComponent implements OnInit {
this.dataSource.sortingDataAccessor = (item, property): string | number => { this.dataSource.sortingDataAccessor = (item, property): string | number => {
switch (property) { switch (property) {
case 'serviceDate': return new Date(item.serviceDate).getTime(); case 'serviceDate': return new Date(item.serviceDate).getTime();
case 'category': return item[property] === 'CustomerFacingServiceSpecification' ? 'CFSS': 'RFSS'; // case 'category': return item[property] === 'CustomerFacingServiceSpecification' ? 'CFSS': 'RFSS';
default: return item[property]; default: return item[property];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment