X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fdashboard%2FDashboardComponent.ts;fp=src%2Fapp%2Fdashboard%2FDashboardComponent.ts;h=d6dc80128dfd166325aa870c12eec85c67a0468c;hb=0e9c0a43e54ad1d5a535d43a266c83be534f57dc;hp=2feef7c0c567f24f59325d0a65a54ad43e6c6640;hpb=eb5228bc27bbba2638ca2fe7c6f17e2f65ad59e7;p=osm%2FNG-UI.git diff --git a/src/app/dashboard/DashboardComponent.ts b/src/app/dashboard/DashboardComponent.ts index 2feef7c..d6dc801 100644 --- a/src/app/dashboard/DashboardComponent.ts +++ b/src/app/dashboard/DashboardComponent.ts @@ -123,6 +123,9 @@ export class DashboardComponent implements OnInit { /** Array holds Vim data filtered with selected vimtype */ public vimList: VimAccountDetails[] = []; + /** Model value used to hold selected vimtype Data @public */ + public vimListData: string; + /** List of color for Instances @private */ private backgroundColor: string[] = []; @@ -398,6 +401,9 @@ export class DashboardComponent implements OnInit { public getSelectedVimTypeList(selectedVIMType: string): void { this.vimList = this.vimData.filter((vimData: VimAccountDetails): boolean => vimData.vim_type === selectedVIMType); + if (this.vimList.length === 0) { + this.vimListData = null; + } }