Skip to content

Commit a6c6f48

Browse files
author
Jessica Wang
committed
revert 12ca1d9 since it's a partial UI change.
1 parent 4bdaffb commit a6c6f48

1 file changed

Lines changed: 6 additions & 25 deletions

File tree

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

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -295,36 +295,17 @@
295295
var trafficData = $trafficType.data('traffic-type-data') ?
296296
$trafficType.data('traffic-type-data') : {};
297297
var hypervisor = getData($trafficType.closest('.zone-wizard')).zone.hypervisor;
298-
var fields = {
299-
label: {
300-
label: hypervisor + ' ' + _l('label.traffic.label'),
301-
defaultValue: trafficData.label
302-
}
303-
};
304-
305-
if (hypervisor === 'VMware') {
306-
$.extend(fields, {
307-
vlanid: { label: 'VLAN ID' },
308-
switchType: {
309-
label: 'label.switch.type',
310-
select: function(args) {
311-
args.response.success({
312-
data: [
313-
{ id: 'vmwaresvs', description: 'VMware SVS' },
314-
{ id: 'vmwaredvs', description: 'VMware DVS' },
315-
{ id: 'nexusdvs', description: 'Nexus DVS' }
316-
]
317-
});
318-
}
319-
}
320-
});
321-
}
322298

323299
cloudStack.dialog.createForm({
324300
form: {
325301
title: _l('label.edit.traffic.type'),
326302
desc: _l('message.edit.traffic.type'),
327-
fields: fields
303+
fields: {
304+
label: {
305+
label: hypervisor + ' ' + _l('label.traffic.label'),
306+
defaultValue: trafficData.label
307+
}
308+
}
328309
},
329310

330311
after: function(args) {

0 commit comments

Comments
 (0)