mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 17:46:52 +00:00

use title case, or upper case for abbreviations, everywhere. Signed-off-by: Stefan Lendl <s.lendl@proxmox.com> [ TL: adapt commit subject to our style guides ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
52 lines
878 B
JavaScript
52 lines
878 B
JavaScript
Ext.define('PVE.sdn.zones.QinQInputPanel', {
|
|
extend: 'PVE.panel.SDNZoneBase',
|
|
|
|
onlineHelp: 'pvesdn_zone_plugin_qinq',
|
|
|
|
onGetValues: function(values) {
|
|
let me = this;
|
|
|
|
if (me.isCreate) {
|
|
values.type = me.type;
|
|
} else {
|
|
delete values.sdn;
|
|
}
|
|
|
|
return values;
|
|
},
|
|
|
|
initComponent: function() {
|
|
let me = this;
|
|
|
|
me.items = [
|
|
{
|
|
xtype: 'textfield',
|
|
name: 'bridge',
|
|
fieldLabel: 'Bridge',
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'proxmoxintegerfield',
|
|
name: 'tag',
|
|
minValue: 0,
|
|
maxValue: 4096,
|
|
fieldLabel: gettext('Service VLAN'),
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'proxmoxKVComboBox',
|
|
name: 'vlan-protocol',
|
|
fieldLabel: gettext('Service VLAN Protocol'),
|
|
allowBlank: true,
|
|
value: '802.1q',
|
|
comboItems: [
|
|
['802.1q', '802.1q'],
|
|
['802.1ad', '802.1ad'],
|
|
],
|
|
},
|
|
];
|
|
|
|
me.callParent();
|
|
},
|
|
});
|