mirror of https://github.com/apache/cloudstack.git
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:
parent
9ed446a5a7
commit
b27de95d71
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue