CLOUDSTACK-6852: UI - modules - add DR fields to volume detailView, network detailView, zone detailView.

This commit is contained in:
Jessica Wang 2014-06-09 11:38:34 -07:00
parent a8212d9ef4
commit 044c5e0eee
3 changed files with 15 additions and 0 deletions

View File

@ -1383,6 +1383,10 @@
success: function(json) {
var jsonObj = json.listnetworksresponse.network[0];
addExtraPropertiesToGuestNetworkObject(jsonObj);
//if DR module is included
addExtraPropertiesIfDrModuleIncluded(jsonObj, "Network");
args.response.success({
actionFilter: cloudStack.actionFilter.guestNetwork,
data: jsonObj

View File

@ -1497,6 +1497,10 @@
async: true,
success: function(json) {
var jsonObj = json.listvolumesresponse.volume[0];
//if DR module is included
addExtraPropertiesIfDrModuleIncluded(jsonObj, "Volume");
args.response.success({
actionFilter: volumeActionfilter,
data: jsonObj

View File

@ -1954,6 +1954,10 @@
success: function (json) {
selectedGuestNetworkObj = json.listnetworksresponse.network[0];
addExtraPropertiesToGuestNetworkObject(selectedGuestNetworkObj);
//if DR module is included
addExtraPropertiesIfDrModuleIncluded(selectedGuestNetworkObj, "Network");
args.response.success({
actionFilter: cloudStack.actionFilter.guestNetwork,
data: selectedGuestNetworkObj
@ -7591,6 +7595,9 @@
//override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
});
//if DR module is included
addExtraPropertiesIfDrModuleIncluded(selectedZoneObj, "Zone");
args.response.success({
actionFilter: zoneActionfilter,
data: selectedZoneObj