- this.loadingDialogService.startLoading('Loading RIC instances');
- this.instanceSelectorService.getInstanceArray()
- .pipe(
- finalize(() => this.loadingDialogService.stopLoading())
- )
- .subscribe((instanceArray: RicInstance[]) => {
- this.instanceArray = instanceArray;
- this.selectedInstanceKey = instanceArray[0].key;
- })
+
+ this.instanceChange = this.instanceSelectorService.getSelectedInstance().subscribe((instance: RicInstance) => {
+ if (instance.name) {
+ this.selectedInstanceName = instance.name;
+ } else {
+ this.openInstanceSelectorDialog()
+ }
+ });