From 5c833deffeb39dbe72195631a0db97a0c4a5e3f4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 30 Jan 2020 17:23:01 +0100 Subject: [PATCH] node/net: move MTU to advanced section Signed-off-by: Thomas Lamprecht --- node/NetworkEdit.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/node/NetworkEdit.js b/node/NetworkEdit.js index b0bc531..b2cb2e4 100644 --- a/node/NetworkEdit.js +++ b/node/NetworkEdit.js @@ -40,10 +40,12 @@ Ext.define('Proxmox.node.NetworkEdit', { me.subject = Proxmox.Utils.render_network_iface_type(me.iftype); - var column2 = []; + let column1 = [], + column2 = [], + advancedColumn1 = [], + advancedColumn2 = []; - if (!(me.iftype === 'OVSIntPort' || me.iftype === 'OVSPort' || - me.iftype === 'OVSBond')) { + if (!(me.iftype === 'OVSIntPort' || me.iftype === 'OVSPort' || me.iftype === 'OVSBond')) { column2.push({ xtype: 'proxmoxcheckbox', fieldLabel: gettext('Autostart'), @@ -231,7 +233,7 @@ Ext.define('Proxmox.node.NetworkEdit', { method = 'PUT'; } - var column1 = [{ + column1.push({ xtype: 'hiddenfield', name: 'type', value: me.iftype @@ -261,7 +263,7 @@ Ext.define('Proxmox.node.NetworkEdit', { } } } - }]; + }); if (me.iftype === 'OVSBond') { column1.push( @@ -310,14 +312,17 @@ Ext.define('Proxmox.node.NetworkEdit', { vtype: 'IP6Address', name: 'gateway6' }, + ); + advancedColumn1. push( { xtype: 'proxmoxintegerfield', minValue: 1280, maxValue: 65520, deleteEmpty: !me.isCreate, + emptyText: 1500, fieldLabel: 'MTU', name: 'mtu' - } + }, ); } @@ -327,7 +332,9 @@ Ext.define('Proxmox.node.NetworkEdit', { items: { xtype: 'inputpanel', column1: column1, - column2: column2 + column2: column2, + advancedColumn1: advancedColumn1, + advancedColumn2: advancedColumn2, } }); -- 2.39.2