ui: QinQ: indentation and stricter limits

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-19 21:42:13 +02:00
parent 3f0b3e3aa2
commit 069a28ebac
2 changed files with 66 additions and 62 deletions

View File

@ -4,7 +4,7 @@ Ext.define('PVE.sdn.zones.QinQInputPanel', {
onlineHelp: 'pvesdn_zone_plugin_qinq', onlineHelp: 'pvesdn_zone_plugin_qinq',
onGetValues: function(values) { onGetValues: function(values) {
var me = this; let me = this;
if (me.isCreate) { if (me.isCreate) {
values.type = me.type; values.type = me.type;
@ -16,7 +16,7 @@ Ext.define('PVE.sdn.zones.QinQInputPanel', {
}, },
initComponent : function() { initComponent : function() {
var me = this; let me = this;
me.items = [ me.items = [
{ {
@ -36,16 +36,21 @@ Ext.define('PVE.sdn.zones.QinQInputPanel', {
{ {
xtype: 'proxmoxintegerfield', xtype: 'proxmoxintegerfield',
name: 'tag', name: 'tag',
fieldLabel: gettext('Service vlan'), minValue: 0,
maxValue: 4096,
fieldLabel: gettext('Service VLAN'),
allowBlank: false allowBlank: false
}, },
{ {
xtype: 'proxmoxKVComboBox', xtype: 'proxmoxKVComboBox',
name: 'vlan-protocol', name: 'vlan-protocol',
fieldLabel: gettext('Service vlan protocol'), fieldLabel: gettext('Service-VLAN Protocol'),
allowBlank: true, allowBlank: true,
value: '802.1q', value: '802.1q',
comboItems: [['802.1q', '802.1q'], ['802.1ad', '802.1ad']] comboItems: [
['802.1q', '802.1q'],
['802.1ad', '802.1ad'],
],
}, },
{ {
xtype: 'proxmoxintegerfield', xtype: 'proxmoxintegerfield',
@ -65,7 +70,6 @@ Ext.define('PVE.sdn.zones.QinQInputPanel', {
multiSelect: true, multiSelect: true,
autoSelect: false autoSelect: false
}, },
]; ];
me.callParent(); me.callParent();