improve dashboard UI
[portal/ric-dashboard.git] / webapp-frontend / src / app / ran-control / ran-connection-dialog.component.html
index 500e763..0642baa 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 mat-dialog-title>
     Setup RAN Connection
 </div>
-
 <form [formGroup]="ranDialogForm" novalidate autocomplete="off" (ngSubmit)="setupConnection(ranDialogForm.value)">
   <div mat-dialog-content>
     <div name="rantype">
       <label id="request-type-radio-group-label">RAN type:</label>
-      <mat-radio-group aria-label="RAN type" formControlName="ranType">
-        <mat-radio-button value="endc">EN-DC</mat-radio-button>
-        <mat-radio-button value="x2">X2</mat-radio-button>
+      <mat-radio-group aria-label="RAN Type" formControlName="ranType">
+        <mat-radio-button class="ran-type-radio-button" value="endc">EN-DC</mat-radio-button>
+        <mat-radio-button class="ran-type-radio-button" value="x2">X2</mat-radio-button>
       </mat-radio-group>
     </div>
     <mat-form-field class="input-display-block">
-      <input matInput type="text" placeholder="eNB/gNB Name" formControlName="ranName">
+      <input matInput type="text" placeholder="RAN Name" formControlName="ranName">
       <mat-hint align="end">Example: ABCD123456</mat-hint>
       <mat-error *ngIf="validateControl('ranName') && hasError('ranName', 'required')">Name is required</mat-error>
       <mat-error *ngIf="hasError('ranName', 'length')">Valid name is required</mat-error>
@@ -50,6 +49,6 @@
   </div>
   <div mat-dialog-actions class="modal-footer justify-content-center">
     <button class="mat-raised-button" (click)="onCancel()">Cancel</button>
-    <button class="mat-raised-button mat-primary" [disabled]="!ranDialogForm.valid">Connect</button>
+    <button class="mat-raised-button mat-primary" [disabled]="!ranDialogForm.valid || processing">Connect</button>
   </div>
 </form>