Updated RST documentation
[portal/ric-dashboard.git] / webapp-frontend / src / app / ran-control / ran-control.component.html
index ba37728..d249d44 100644 (file)
   <button mat-raised-button color="warn" class="disconnect-all-button"
     (click)="disconnectAllRANConnections()">Disconnect All</button>
 
-  <div class="spinner-container" *ngIf="dataSource.loading$ | async">
-    <mat-spinner></mat-spinner>
-  </div>
-
   <table mat-table class="ran-control-table mat-elevation-z8" [dataSource]="dataSource">
 
-    <ng-container matColumnDef="requestType">
-      <mat-header-cell *matHeaderCellDef>RAN Type</mat-header-cell>
-      <mat-cell *matCellDef="let rconnect">{{rconnect.requestType}}</mat-cell>
+    <ng-container matColumnDef="nbId">
+      <mat-header-cell *matHeaderCellDef>Nodeb ID</mat-header-cell>
+      <mat-cell *matCellDef="let ran">{{ran.nodebIdentity.globalNbId.nbId}}</mat-cell>
+    </ng-container>
+
+    <ng-container matColumnDef="nodeType">
+      <mat-header-cell *matHeaderCellDef>Node Type</mat-header-cell>
+      <mat-cell *matCellDef="let ran">{{ran.nodebStatus.nodeType}}</mat-cell>
     </ng-container>
 
     <ng-container matColumnDef="ranName">
-      <mat-header-cell *matHeaderCellDef>eNodeB/gNodeB Name</mat-header-cell>
-      <mat-cell *matCellDef="let rconnect">{{rconnect.ranName}}</mat-cell>
+      <mat-header-cell *matHeaderCellDef>RAN Name</mat-header-cell>
+      <mat-cell *matCellDef="let ran">{{ran.nodebIdentity.inventoryName}}</mat-cell>
     </ng-container>
 
     <ng-container matColumnDef="ranIp">
       <mat-header-cell *matHeaderCellDef>IP</mat-header-cell>
-      <mat-cell *matCellDef="let rconnect">{{rconnect.ranIp}}</mat-cell>
+      <mat-cell *matCellDef="let ran">{{ran.nodebStatus.ip}}</mat-cell>
     </ng-container>
 
     <ng-container matColumnDef="ranPort">
       <mat-header-cell *matHeaderCellDef>Port</mat-header-cell>
-      <mat-cell *matCellDef="let rconnect">{{rconnect.ranPort}}</mat-cell>
+      <mat-cell *matCellDef="let ran">{{ran.nodebStatus.port}}</mat-cell>
     </ng-container>
 
-    <ng-container matColumnDef="responseCode">
-      <mat-header-cell *matHeaderCellDef>Response</mat-header-cell>
-      <mat-cell *matCellDef="let rconnect">{{rconnect.responseCode}}</mat-cell>
+    <ng-container matColumnDef="connectionStatus">
+      <mat-header-cell *matHeaderCellDef>Connection Status</mat-header-cell>
+      <mat-cell *matCellDef="let ran">{{ran.nodebStatus.connectionStatus}}</mat-cell>
     </ng-container>
 
-    <ng-container matColumnDef="timeStamp">
-      <mat-header-cell *matHeaderCellDef>Time Stamp</mat-header-cell>
-      <mat-cell *matCellDef="let rconnect">{{rconnect.timeStamp}}</mat-cell>
+    <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 row; columns: displayedColumns"></mat-row>
+    <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>