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