Skip to content

Commit 044c5e0

Browse files
author
Jessica Wang
committed
CLOUDSTACK-6852: UI - modules - add DR fields to volume detailView, network detailView, zone detailView.
1 parent a8212d9 commit 044c5e0

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
@@ -1497,6 +1497,10 @@
14971497
async: true,
14981498
success: function(json) {
14991499
var jsonObj = json.listvolumesresponse.volume[0];
1500+
1501+
//if DR module is included
1502+
addExtraPropertiesIfDrModuleIncluded(jsonObj, "Volume");
1503+
15001504
args.response.success({
15011505
actionFilter: volumeActionfilter,
15021506
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)