improve the dark theme
[portal/ric-dashboard.git] / webapp-frontend / src / app / app-control / app-control.component.html
index 3321caa..ec802f4 100644 (file)
@@ -2,14 +2,14 @@
   ========================LICENSE_START=================================
   O-RAN-SC
   %%
-  Copyright (C) 2019 AT&T Intellectual Property and Nokia
+  Copyright (C) 2019 AT&T Intellectual Property
   %%
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
-
+  
        http://www.apache.org/licenses/LICENSE-2.0
-
+  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   -->
 
 <div class="app-control__section">
-  <h3 class="app-control__header">xApp Control</h3>
-  <div class="spinner-container" *ngIf="dataSource.loading$ | async">
-    <mat-spinner></mat-spinner>
-  </div>
+  <h3 class="rd-global-page-title">xApp Control</h3>
+
   <table mat-table [dataSource]="dataSource" matSort multiTemplateDataRows class="app-control-table mat-elevation-z8">
 
     <ng-container matColumnDef="xapp">
       <mat-header-cell *matHeaderCellDef> Action </mat-header-cell>
       <!-- click on button should not expand/collapse the row -->
       <mat-cell *matCellDef="let element" (click)="$event.stopPropagation()">
-        <button mat-icon-button (click)="controlApp(element)">
-          <mat-icon>settings</mat-icon>
+      <button mat-icon-button (click)="controlApp(element)">
+          <mat-icon matTooltip="Adjust settings">settings</mat-icon>
         </button>
-        <button mat-icon-button color="warn" (click)="undeployApp(element)">
-          <mat-icon>delete</mat-icon>
+        <button mat-icon-button (click)="onUndeployApp(element)">
+          <mat-icon matTooltip="Undeploy app">cloud_download</mat-icon>
         </button>
       </mat-cell>
     </ng-container>
       </td>
     </ng-container>
 
+    <ng-container matColumnDef="noRecordsFound">
+      <mat-footer-cell *matFooterCellDef>No records found.</mat-footer-cell>
+    </ng-container>
+
     <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
     <mat-row *matRowDef="let element; columns: displayedColumns;"
       [class.example-expanded-row]="expandedElement === element"
       (click)="expandedElement = expandedElement === element ? null : element"></mat-row>
     <tr mat-row *matRowDef="let row; columns: ['expandedDetail']" class="message-row"></tr>
+    <mat-footer-row *matFooterRowDef="['noRecordsFound']" [ngClass]="{'display-none': dataSource.rowCount > 0}"></mat-footer-row>
+
   </table>
+
+  <div class="spinner-container" *ngIf="dataSource.loading$ | async">
+    <mat-spinner diameter=50></mat-spinner>
+  </div>
+
 </div>