type: vimAccountData.vim_type,
operationalState: vimAccountData._admin.operationalState,
description: vimAccountData.description,
- instancesData: this.nsData
+ instancesData: this.nsData,
+ resources: vimAccountData.resources !== undefined ? vimAccountData.resources : null
};
}
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);
+ }
}
});
}
// tslint:disable-next-line: no-any
private setCoordinates(feature: any, overlay: Overlay): void {
this.popupData = '';
- this.popupData += '<h3 class="popover-header">' + feature.values_.vimName + '</h3>';
+ this.popupData += '<h3 class="popover-header">' + feature.values_.vimName + '- (' + feature.values_.location + ')</h3>';
this.popupData += '<ul class="list-unstyled m-2">';
const instnaceData: NSInstanceDetails[] = this.nsData.filter((item: NSInstanceDetails) => {
if (item.datacenter === feature.values_.Id) {
- this.popupData += '<li class="m-2"><a class="d-block text-truncate" target="_parent" href="instances/ns/' + item._id + '">'
+ this.popupData += '<li class="m-2"><a class="d-block text-truncate" target="_parent" href="instances/ns/' + item._id + '"><i class="fa-sitemap fas icons mr-1"></i>'
+ item.name + '</a></li>';
return item;
}