diff --git a/client/htmls/private/ajax/Settings/providerSync.html b/client/htmls/private/ajax/Settings/providerSync.html
index fd25800de..4644195ef 100644
--- a/client/htmls/private/ajax/Settings/providerSync.html
+++ b/client/htmls/private/ajax/Settings/providerSync.html
@@ -783,10 +783,10 @@
Importing Instances
{"data": "instanceIP","orderable" : true,
"render":function(data, type, full, meta) {
if(full.instanceIP === null){
- if(full.privateIpAddress === null){
- return '-';
- }else{
+ if(full.privateIpAddress && full.privateIpAddress !== null){
return full.privateIpAddress;
+ }else{
+ return '-';
}
}else{
return full.instanceIP;
@@ -1055,11 +1055,11 @@ Importing Instances
var catalystEntityProjName = $('#projectnameLabelId').attr('catalystEntitytype');
var catalystEntityEnvName = $('#envnameLabelId').attr('catalystEntitytype');
var catalystEntityBgName = $('#bgNameLabelId').attr('catalystEntitytype');
- if(tagsListSelected.length > 0){
+ /*if(tagsListSelected.length > 0){
$('.btnprojectMappingSave').attr('disabled',false);
}else{
$('.btnprojectMappingSave').attr('disabled',true);
- }
+ }*/
for(var i=0;iImporting Instances
$bgtagsList.val(objtagName);
}
if(objcatalystEntityType == catalystEntityProjName){
- $('.btnprojectMappingSave').attr('disabled',false);
+ //$('.btnprojectMappingSave').attr('disabled',false);
$projecttagsList.val(objtagName);
//For Mapping tab.....
//For project catalystEntityType
@@ -1107,9 +1107,9 @@ Importing Instances
}
}
}
- }else{
+ }/*else{
$('.btnprojectMappingSave').attr('disabled',true);
- }
+ }*/
//For environment catalystEntityType
if(objcatalystEntityType == catalystEntityEnvName){
$envtagsList.val(objtagName);
@@ -1250,7 +1250,7 @@ Importing Instances
$.get('/providers/'+urlproviderId+'/tag-mappings/environment', function(data) {
if(data){
- $('.btnenvMappingSave').attr('disabled',false);
+ // $('.btnenvMappingSave').attr('disabled',false);
var $tbody = $('#mappingenvTable tbody').empty();
for(var i = 0; i < envList.length; i++){
//For Table
@@ -1283,7 +1283,7 @@ Importing Instances
}
}
}).fail(function(jxhr) {
- $('.btnenvMappingSave').attr('disabled',true);
+ // $('.btnenvMappingSave').attr('disabled',true);
});
}
@@ -1292,7 +1292,7 @@ Importing Instances
$.get('/providers/'+urlproviderId+'/tag-mappings/bgName', function(data) {
if(data){
- $('.btnbgMappingSave').attr('disabled',false);
+ ///$('.btnbgMappingSave').attr('disabled',false);
var $tbody = $('#mappingBgTable tbody').empty();
for(var i = 0; i < bgList.length; i++){
//For Table
@@ -1325,7 +1325,7 @@ Importing Instances
}
}
}).fail(function(jxhr) {
- $('.btnbgMappingSave').attr('disabled',true);
+ /// $('.btnbgMappingSave').attr('disabled',true);
});
}
$('.btnbgMappingSave').on('click',function(){
@@ -1767,10 +1767,10 @@ Importing Instances
{"data": "","orderable" : true,
"render":function(data, type, full, meta) {
if(full.ip === null){
- if(full.privateIpAddress === null){
- return '-';
- }else{
+ if(full.privateIpAddress && full.privateIpAddress !== null){
return full.privateIpAddress;
+ }else{
+ return '-';
}
}else{
return full.ip;
@@ -1944,10 +1944,10 @@ Importing Instances
{"data": "","orderable" : true,
"render":function(data, type, full, meta) {
if(full.ip === null){
- if(full.privateIpAddress === null){
- return '-';
- }else{
+ if(full.privateIpAddress && full.privateIpAddress !== null){
return full.privateIpAddress;
+ }else{
+ return '-';
}
}else{
return full.ip;
diff --git a/client/htmls/public/js/awsCapacity.js b/client/htmls/public/js/awsCapacity.js
index 1a78e9422..4397b0852 100644
--- a/client/htmls/public/js/awsCapacity.js
+++ b/client/htmls/public/js/awsCapacity.js
@@ -268,10 +268,10 @@ $(document).ready(function() {
"orderable": true,
"render":function(data, type, full, meta) {
if(full.instanceIP === null){
- if(full.privateIpAddress === null){
- return '-';
- }else{
+ if(full.privateIpAddress && full.privateIpAddress !== null){
return full.privateIpAddress;
+ }else{
+ return '-';
}
}else{
return full.instanceIP;
@@ -325,10 +325,10 @@ $(document).ready(function() {
"orderable": true,
"render": function(data, type, full,meta) {
if(full.ip === null){
- if(full.privateIpAddress === null){
- return '-';
- }else{
+ if(full.privateIpAddress && full.privateIpAddress !== null){
return full.privateIpAddress;
+ }else{
+ return '-';
}
}else{
return full.ip;
@@ -402,10 +402,10 @@ $(document).ready(function() {
"orderable": true,
"render":function(data, type, full, meta) {
if(full.ip === null){
- if(full.privateIpAddress === null){
- return '-';
- }else{
+ if(full.privateIpAddress && full.privateIpAddress !== null){
return full.privateIpAddress;
+ }else{
+ return '-';
}
}else{
return full.ip;