]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/sdn/zones/QinQEdit.js
ui: eslint: fix various spacing related issues
[pve-manager.git] / www / manager6 / sdn / zones / QinQEdit.js
1 Ext.define('PVE.sdn.zones.QinQInputPanel', {
2 extend: 'PVE.panel.SDNZoneBase',
3
4 onlineHelp: 'pvesdn_zone_plugin_qinq',
5
6 onGetValues: function(values) {
7 let me = this;
8
9 if (me.isCreate) {
10 values.type = me.type;
11 } else {
12 delete values.sdn;
13 }
14
15 return values;
16 },
17
18 initComponent: function() {
19 let me = this;
20
21 me.items = [
22 {
23 xtype: me.isCreate ? 'textfield' : 'displayfield',
24 name: 'zone',
25 maxLength: 8,
26 value: me.zone || '',
27 fieldLabel: 'ID',
28 allowBlank: false,
29 },
30 {
31 xtype: 'textfield',
32 name: 'bridge',
33 fieldLabel: 'Bridge',
34 allowBlank: false,
35 },
36 {
37 xtype: 'proxmoxintegerfield',
38 name: 'tag',
39 minValue: 0,
40 maxValue: 4096,
41 fieldLabel: gettext('Service VLAN'),
42 allowBlank: false,
43 },
44 {
45 xtype: 'proxmoxKVComboBox',
46 name: 'vlan-protocol',
47 fieldLabel: gettext('Service-VLAN Protocol'),
48 allowBlank: true,
49 value: '802.1q',
50 comboItems: [
51 ['802.1q', '802.1q'],
52 ['802.1ad', '802.1ad'],
53 ],
54 },
55 {
56 xtype: 'proxmoxintegerfield',
57 name: 'mtu',
58 minValue: 100,
59 maxValue: 65000,
60 fieldLabel: 'MTU',
61 skipEmptyText: true,
62 allowBlank: true,
63 emptyText: 'auto',
64 },
65 {
66 xtype: 'pveNodeSelector',
67 name: 'nodes',
68 fieldLabel: gettext('Nodes'),
69 emptyText: gettext('All') + ' (' + gettext('No restrictions') +')',
70 multiSelect: true,
71 autoSelect: false,
72 },
73 ];
74
75 me.callParent();
76 },
77 });