Skip to content

Commit ff5477d

Browse files
author
Jessica Wang
committed
CLOUDSTACK-537: cloudstack UI - Advanced SG-enabled zone - VM Wizard - remove obsolete variable(myNetworks), rename variable sharedNetworks to networkObjs.
1 parent bfdec24 commit ff5477d

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

‎ui/scripts/instanceWizard.js‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,8 @@
399399

400400
args.response.success({
401401
type: 'select-network',
402-
data: {
403-
myNetworks: [], //not used any more
404-
sharedNetworks: networkObjs,
402+
data: {
403+
networkObjs: networkObjs,
405404
securityGroups: [],
406405
networkOfferings: networkOfferingObjs,
407406
vpcs: vpcObjs
@@ -432,9 +431,8 @@
432431
});
433432
args.response.success({
434433
type: 'select-security-group',
435-
data: {
436-
myNetworks: [], //not used any more
437-
sharedNetworks: [],
434+
data: {
435+
networkObjs: [],
438436
securityGroups: securityGroupArray,
439437
networkOfferings: [],
440438
vpcs: []
@@ -445,9 +443,8 @@
445443
else if(step5ContainerType == 'nothing-to-select') {
446444
args.response.success({
447445
type: 'nothing-to-select',
448-
data: {
449-
myNetworks: [], //not used any more
450-
sharedNetworks: [],
446+
data: {
447+
networkObjs: [],
451448
securityGroups: [],
452449
networkOfferings: [],
453450
vpcs: []

‎ui/scripts/ui-custom/instanceWizard.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636

637637
// My networks
638638
$step.find('.my-networks .select-container').append(
639-
makeSelects('my-networks', $.merge(args.data.myNetworks, args.data.sharedNetworks), {
639+
makeSelects('my-networks', args.data.networkObjs, {
640640
name: 'name',
641641
desc: 'type',
642642
id: 'id'

0 commit comments

Comments
 (0)