Skip to content

Commit 1641b28

Browse files
author
Jessica Wang
committed
CLOUDSTACK-6852: UI - modules - add DR fields to volume detailView, network detailView, zone detailView.
1 parent 89a03c7 commit 1641b28

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎ui/scripts/network.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,10 @@
13831383
success: function(json) {
13841384
var jsonObj = json.listnetworksresponse.network[0];
13851385
addExtraPropertiesToGuestNetworkObject(jsonObj);
1386+
1387+
//if DR module is included
1388+
addExtraPropertiesIfDrModuleIncluded(jsonObj, "Network");
1389+
13861390
args.response.success({
13871391
actionFilter: cloudStack.actionFilter.guestNetwork,
13881392
data: jsonObj

‎ui/scripts/storage.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,10 @@
14941494
async: true,
14951495
success: function(json) {
14961496
var jsonObj = json.listvolumesresponse.volume[0];
1497+
1498+
//if DR module is included
1499+
addExtraPropertiesIfDrModuleIncluded(jsonObj, "Volume");
1500+
14971501
args.response.success({
14981502
actionFilter: volumeActionfilter,
14991503
data: jsonObj

‎ui/scripts/system.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,10 @@
19541954
success: function (json) {
19551955
selectedGuestNetworkObj = json.listnetworksresponse.network[0];
19561956
addExtraPropertiesToGuestNetworkObject(selectedGuestNetworkObj);
1957+
1958+
//if DR module is included
1959+
addExtraPropertiesIfDrModuleIncluded(selectedGuestNetworkObj, "Network");
1960+
19571961
args.response.success({
19581962
actionFilter: cloudStack.actionFilter.guestNetwork,
19591963
data: selectedGuestNetworkObj
@@ -7591,6 +7595,9 @@
75917595
//override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
75927596
});
75937597

7598+
//if DR module is included
7599+
addExtraPropertiesIfDrModuleIncluded(selectedZoneObj, "Zone");
7600+
75947601
args.response.success({
75957602
actionFilter: zoneActionfilter,
75967603
data: selectedZoneObj

0 commit comments

Comments
 (0)