Skip to content

Commit 1308ade

Browse files
author
Jessica Wang
committed
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.
1 parent e444a03 commit 1308ade

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎ui/scripts/system.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5718,6 +5718,10 @@
57185718
args.response.success({
57195719
data: args.context.physicalResources[0]
57205720
});
5721+
},
5722+
error: function(XMLHttpResponse) {
5723+
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
5724+
args.response.error(errorMsg);
57215725
}
57225726
});
57235727
},
@@ -15986,7 +15990,7 @@
1598615990
var zoneActionfilter = function(args) {
1598715991
var jsonObj = args.context.item;
1598815992
var allowedActions = ['enableSwift'];
15989-
15993+
1599015994
if (jsonObj.vmwaredcId == null)
1599115995
allowedActions.push('addVmwareDc');
1599215996
else

0 commit comments

Comments
 (0)