2 ========================LICENSE_START=================================
5 Copyright (C) 2019 AT&T Intellectual Property
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ========================LICENSE_END===================================
20 <div class="catalog__section">
21 <h3 class="catalog__header">xApp Catalog</h3>
23 <table mat-table [dataSource]="dataSource" matSort class="catalog-table mat-elevation-z8">
25 <ng-container matColumnDef="name">
26 <mat-header-cell *matHeaderCellDef mat-sort-header> App Name </mat-header-cell>
27 <mat-cell *matCellDef="let element"> {{element.name}} </mat-cell>
30 <ng-container matColumnDef="version">
31 <mat-header-cell *matHeaderCellDef mat-sort-header> Version </mat-header-cell>
32 <mat-cell *matCellDef="let element"> {{element.version}} </mat-cell>
35 <ng-container matColumnDef="action">
36 <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>
37 <mat-cell *matCellDef="let element">
38 <div class="catalog-button-row">
39 <button mat-icon-button (click)="onConfigureApp(element)">
40 <mat-icon matTooltip="Adjust settings">settings</mat-icon>
42 <button mat-icon-button (click)="onDeployApp(element)">
43 <mat-icon matTooltip="Deploy app">cloud_upload</mat-icon>
49 <ng-container matColumnDef="noRecordsFound">
50 <mat-footer-cell *matFooterCellDef>No records found.</mat-footer-cell>
53 <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
54 <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
55 <mat-footer-row *matFooterRowDef="['noRecordsFound']" [ngClass]="{'display-none': dataSource.rowCount > 0}"></mat-footer-row>
59 <div class="spinner-container" *ngIf="dataSource.loading$ | async">
60 <mat-spinner diameter=50></mat-spinner>