X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fcaas-ingress%2Fcaas-ingress.component.ts;h=13ff7af8d7b987c43b114964cf2a7e94850875b7;hb=refs%2Fchanges%2F72%2F2272%2F8;hp=c389cc91df1aef18b72779674f0f11c7ea757f9c;hpb=9cf5b95a5bc9810d739d14d324dd7d80cbdb4a7d;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/caas-ingress/caas-ingress.component.ts b/webapp-frontend/src/app/caas-ingress/caas-ingress.component.ts index c389cc91..13ff7af8 100644 --- a/webapp-frontend/src/app/caas-ingress/caas-ingress.component.ts +++ b/webapp-frontend/src/app/caas-ingress/caas-ingress.component.ts @@ -21,6 +21,7 @@ import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { MatSort } from '@angular/material/sort'; import { Subscription } from 'rxjs'; +import { RicInstance } from '../interfaces/dashboard.types'; import { CaasIngressService } from '../services/caas-ingress/caas-ingress.service'; import { InstanceSelectorService } from '../services/instance-selector/instance-selector.service'; import { ConfirmDialogService } from '../services/ui/confirm-dialog.service'; @@ -56,9 +57,9 @@ export class CaasIngressComponent implements OnInit, OnDestroy { ngOnInit() { this.dataSource = new CaasIngressDataSource(this.caasIngressSvc, this.sort, this.notificationService); - this.instanceChange = this.instanceSelectorService.getSelectedInstancekey().subscribe((instanceKey: string) => { - if (instanceKey) { - this.dataSource.loadTable(instanceKey, this.cluster, this.namespace); + this.instanceChange = this.instanceSelectorService.getSelectedInstance().subscribe((instance: RicInstance) => { + if (instance.key) { + this.dataSource.loadTable(instance.key, this.cluster, this.namespace); } }); }