X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fvim-accounts%2Fvim-account-details%2FVimAccountDetailsComponent.ts;h=f580e8ae0d8c90b407c40f83c867f80a48f33538;hb=b1ec4c3fd775b8c9f8c9576cd232d2a4711056a3;hp=2ebcea69c9ebc7235f04ef93e19a592d972c0646;hpb=d477b85279831f43f77d10acfc1912da1fbe6007;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 2ebcea6..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 }; } @@ -360,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); + } } }); } @@ -449,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 += '