Skip to content

Commit 04be0cd

Browse files
author
Jessica Wang
committed
CLOUDSTACK-1816: Cisco VNMC ASA1000v - UI - Infrastructure menu - network service providers - show Cisco VNMC in Advanced zone, hide it in Basic zone.
1 parent ea4cb0e commit 04be0cd

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎ui/modules/infrastructure/infrastructure.js‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@
3333

3434
$(window).bind('cloudStack.system.serviceProviders.makeHarcodedArray', function(event, data) {
3535
var nspHardcodingArray = data.nspHardcodingArray;
36-
37-
nspHardcodingArray.push({
38-
id: id,
39-
name: name,
40-
state: state
41-
});
36+
var selectedZoneObj = data.selectedZoneObj;
37+
if(selectedZoneObj.networktype == "Advanced"){
38+
nspHardcodingArray.push({
39+
id: id,
40+
name: name,
41+
state: state
42+
});
43+
}
4244
});
4345
},
4446

‎ui/scripts/system.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12144,7 +12144,8 @@
1214412144
];
1214512145

1214612146
$(window).trigger('cloudStack.system.serviceProviders.makeHarcodedArray', {
12147-
nspHardcodingArray: nspHardcodingArray
12147+
nspHardcodingArray: nspHardcodingArray,
12148+
selectedZoneObj: selectedZoneObj
1214812149
});
1214912150

1215012151
if(selectedZoneObj.networktype == "Basic") {

0 commit comments

Comments
 (0)