2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
8 Unless otherwise specified, all software contained herein is licensed
9 under the Apache License, Version 2.0 (the "License");
10 you may not use this software except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 Unless otherwise specified, all documentation contained herein is licensed
22 under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 you may not use this documentation except in compliance with the License.
24 You may obtain a copy of the License at
26 https://creativecommons.org/licenses/by/4.0/
28 Unless required by applicable law or agreed to in writing, documentation
29 distributed under the License is distributed on an "AS IS" BASIS,
30 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 See the License for the specific language governing permissions and
32 limitations under the License.
34 ============LICENSE_END============================================
39 <div class="container">
40 <div id="microservice-onboarding-title" class="w-ecomp-main-view-title">
41 <h1 class="heading-page"> Microservice Onboarding</h1>
45 <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
48 <button type="button" style="float: right;" class="btn btn-primary" (click)="openAddNewMicroserviceModal('')">
49 <i class="icon ion-md-person-add"></i>Add Microservice
52 <table mat-table [dataSource]="dataSource" matSort>
53 <!-- Microservice Name Column -->
54 <ng-container matColumnDef="microserviceName">
55 <th id="col1" mat-header-cell *matHeaderCellDef mat-sort-header> Microservice Name </th>
56 <td (click)="openAddNewMicroserviceModal(element)" id="rowheader_t1_{{i}}-microserviceName"
57 mat-cell *matCellDef="let element; let i = index;"> {{element.name}}
61 <!-- Microservice serviceEndPointURL Column -->
62 <ng-container matColumnDef="serviceEndPointURL">
63 <th id="col2" mat-header-cell *matHeaderCellDef> Service End Point URL </th>
64 <td (click)="openAddNewMicroserviceModal(element)" id="rowheader_t1_{{i}}-serviceEndPointURL"
65 mat-cell *matCellDef="let element; let i=index;"> {{element.url}} </td>
68 <!-- Microservice securityType Column -->
69 <ng-container matColumnDef="securityType">
70 <th id="col2" mat-header-cell *matHeaderCellDef> Security Type </th>
71 <td (click)="openAddNewMicroserviceModal(element)" id="rowheader_t1_{{i}}-securityType"
72 mat-cell *matCellDef="let element; let i=index;"> {{element.securityType}} </td>
75 <!-- Delete Column -->
76 <ng-container matColumnDef="delete">
77 <th id="col4" mat-header-cell *matHeaderCellDef> Delete </th>
78 <td id="rowheader_t1_{{i}}" mat-cell *matCellDef="let element; let i=index;">
79 <span class="icon-trash" id="{{i}}-button-portal-admin-remove" (click)="deleteService(element)">
80 <i class="icon ion-md-trash"></i>
85 <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
86 <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
88 <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>