X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fvim-accounts%2Fvim-account-details%2FVimAccountDetailsComponent.ts;h=f580e8ae0d8c90b407c40f83c867f80a48f33538;hb=c5b4782eacb966fd840b0f4e4459b7120ecd38df;hp=71455f5dcf7c7a11b2d7d6f7ddf4e1333bf1af09;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts index 71455f5..f580e8a 100644 --- a/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts +++ b/src/app/vim-accounts/vim-account-details/VimAccountDetailsComponent.ts @@ -267,7 +267,8 @@ export class VimAccountDetailsComponent implements OnInit { type: vimAccountData.vim_type, operationalState: vimAccountData._admin.operationalState, description: vimAccountData.description, - instancesData: this.nsData + instancesData: this.nsData, + resources: vimAccountData.resources !== undefined ? vimAccountData.resources : null }; } @@ -309,7 +310,7 @@ export class VimAccountDetailsComponent implements OnInit { this.nsData = []; this.restService.getResource(environment.NSDINSTANCES_URL).subscribe((nsdInstancesData: NSInstanceDetails[]) => { const nsRunningInstancesData: NSInstanceDetails[] = nsdInstancesData.filter((instancesData: NSInstanceDetails) => - instancesData['operational-status'] === this.nsinstancesoperationalStateRunning); + instancesData['operational-status'] === this.nsinstancesoperationalStateRunning); this.nsData = nsRunningInstancesData; resolve(true); }, (error: ERRORDATA) => { @@ -331,7 +332,8 @@ export class VimAccountDetailsComponent implements OnInit { }), view: new View({ center: fromLonLat([CONSTANTNUMBER.osmapviewlong, CONSTANTNUMBER.osmapviewlat]), - zoom: 3 + zoom: 3, + minZoom: 1.5 }) }); } @@ -359,10 +361,12 @@ export class VimAccountDetailsComponent implements OnInit { if (this.getLocation !== []) { this.getLocation.filter((loc: GetLocation) => { if (loc.location !== '') { - const getLatLong: string[] = loc.location.split(','); - this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude]; - this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude]; - this.addMarker(getLatLong[0], loc.id, loc.name); + if (loc.location !== ',,') { + const getLatLong: string[] = loc.location.split(','); + this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude]; + this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude]; + this.addMarker(getLatLong[0], loc.id, loc.name); + } } }); } @@ -448,11 +452,11 @@ export class VimAccountDetailsComponent implements OnInit { // tslint:disable-next-line: no-any private setCoordinates(feature: any, overlay: Overlay): void { this.popupData = ''; - this.popupData += '

' + feature.values_.vimName + '

'; + this.popupData += '

' + feature.values_.vimName + '- (' + feature.values_.location + ')

'; this.popupData += '