CLOUDSTACK-3154: UI > zone detail > remove VMware data center action > if API returns error, stop spinning wheel and show returned error text in a pop up dialog.

This commit is contained in:
Jessica Wang 2013-11-14 14:35:49 -08:00
parent 9ed446a5a7
commit b27de95d71
1 changed files with 5 additions and 1 deletions

View File

@ -6061,6 +6061,10 @@
args.response.success({
data: args.context.physicalResources[0]
});
},
error: function(XMLHttpResponse) {
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
args.response.error(errorMsg);
}
});
},
@ -16956,7 +16960,7 @@
var zoneActionfilter = function(args) {
var jsonObj = args.context.item;
var allowedActions = ['enableSwift'];
if (jsonObj.vmwaredcId == null)
allowedActions.push('addVmwareDc');
else