set the first instance as the default one 18/2718/2
authorNicolas Hu <jh245g@att.com>
Mon, 9 Mar 2020 18:15:02 +0000 (14:15 -0400)
committerNicolas Hu <jh245g@att.com>
Mon, 9 Mar 2020 18:23:04 +0000 (14:23 -0400)
Change-Id: I3a94a0eb67818f9ece8d7c44f71a29814db556a7
Signed-off-by: Jun (Nicolas) Hu <jh245g@att.com>
dashboard/webapp-frontend/src/app/rd.component.ts
docs/release-notes.rst

index b2bf37f..8de2005 100644 (file)
@@ -19,7 +19,7 @@
  */
 import { Component, OnInit } from '@angular/core';
 import { Subscription } from 'rxjs';
-import { RicInstance } from './interfaces/dashboard.types';
+import { RicInstance, RicRegion } from './interfaces/dashboard.types';
 import { InstanceSelectorService } from './services/instance-selector/instance-selector.service';
 import { InstanceSelectorDialogService } from './services/ui/instance-selector-dialog.service';
 import { UiService } from './services/ui/ui.service';
@@ -50,7 +50,9 @@ export class RdComponent implements OnInit {
       if (instance.name) {
         this.selectedInstanceName = instance.name;
       } else {
-        this.openInstanceSelectorDialog()
+        this.instanceSelectorService.getAllInstances().subscribe((regArray: RicRegion[]) => {
+          this.instanceSelectorService.updateSelectedInstance(regArray[0].instances[0]);
+        });
       }
     });
   }
index 1a30449..c9ff9c8 100644 (file)
@@ -5,12 +5,13 @@
 RIC Dashboard Release Notes
 ===========================
 
-Version 2.0.1, 28 Feb 2020
+Version 2.0.1, 09 Mar 2020
 --------------------------
 * Revise controllers to use ResponseEntity
 * Drop AC xApp control/config screen from front-end
 * Drop A1 Mediator controller and tests from back-end
 * Upgrade to Spring-Boot 2.2.4.RELEASE
+* Set the first instance as the default one
 
 Version 2.0.0, 5 Feb 2020
 --------------------------