Commit 58e2114c authored by Michail Tzanatos's avatar Michail Tzanatos
Browse files

added peel to assigned service specs that display the service spec type (rfss or cfss)

parent b8ed35e9
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@
                <mat-autocomplete #autoComplete="matAutocomplete" (optionSelected)="selected($event)" autoActiveFirstOption>
                    <mat-option *ngFor="let spec of filteredSpecs$ | async" [value]="spec">
                        {{spec.name}} 
                        <b class="badge badge-info ml-1">
                            {{ spec['@type'] === 'CustomerFacingServiceSpecification' ? 'CFSS' : (spec['@type'] === 'ResourceFacingServiceSpecification' ? 'RFSS' : 'null') }}
                        </b>
                    </mat-option>
                </mat-autocomplete>
            </mat-form-field>
@@ -26,7 +29,11 @@
                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Assigned Service Specifications </th>
                    <td mat-cell *matCellDef="let element" matTooltipClass="universal-tooltip"
                        [matTooltip]="element.description" matTooltipPosition="above">
                        <b>{{element.name}}</b> </td>
                        <b>{{element.name}}</b>
                        <b class="badge badge-info ml-1">
                            {{ element['@type'] === 'CustomerFacingServiceSpecification' ? 'CFSS' : (element['@type'] === 'ResourceFacingServiceSpecification' ? 'RFSS' : 'null') }}
                        </b> 
                    </td>
                </ng-container>

                <ng-container matColumnDef="actions">
+4 −1
Original line number Diff line number Diff line
@@ -168,7 +168,10 @@
    
                                                <div *ngFor="let relatedServiceSpecification of filteredServiceSpecificationRel$ | async"
                                                    class="spec-relationship-container pt-3">
                                                    <div><a routerLink="/services/service_spec_update/{{relatedServiceSpecification.id}}"><b>{{relatedServiceSpecification.name}}</b></a></div>
                                                    <div><a routerLink="/services/service_spec_update/{{relatedServiceSpecification.id}}"><b>{{relatedServiceSpecification.name}}</b></a>
                                                        <div class="badge badge-info ml-1">
                                                            {{ relatedServiceSpecification['@type'] === 'CustomerFacingServiceSpecification' ? 'CFSS' : (relatedServiceSpecification['@type'] === 'ResourceFacingServiceSpecification' ? 'RFSS' : 'null') }}
                                                        </div></div>
                                                    <a routerLink='/services/service_spec_update/{{relatedServiceSpecification.id}}'>
                                                        <button class="btn btn-warning btn-sm"><i class="far fa-edit"></i></button>
                                                    </a>