From 37985d657c221352d26a1b01dd0828b9b70d51ce Mon Sep 17 00:00:00 2001 From: Daniel Tschlatscher Date: Thu, 3 Nov 2022 16:38:09 +0100 Subject: [PATCH] gui: move rate limit field to advanced section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new MTU field and the rate limit field are now in the advanced section of the NetworkInputPanel to parallel the layout of the NetworkEdit for VMs. Signed-off-by: Daniel Tschlatscher Reviewed-by:  Stefan Hanreich  Tested-by:  Stefan Hanreich  --- www/manager6/lxc/Network.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js index c6c40934..85033bd8 100644 --- a/www/manager6/lxc/Network.js +++ b/www/manager6/lxc/Network.js @@ -122,16 +122,6 @@ Ext.define('PVE.lxc.NetworkInputPanel', { name: 'tag', value: cdata.tag, }, - { - xtype: 'numberfield', - name: 'rate', - fieldLabel: gettext('Rate limit') + ' (MB/s)', - minValue: 0, - maxValue: 10*1024, - value: cdata.rate, - emptyText: 'unlimited', - allowBlank: true, - }, { xtype: 'proxmoxcheckbox', fieldLabel: gettext('Firewall'), @@ -294,6 +284,19 @@ Ext.define('PVE.lxc.NetworkInputPanel', { }, ]; + me.advancedColumn2 = [ + { + xtype: 'numberfield', + name: 'rate', + fieldLabel: gettext('Rate limit') + ' (MB/s)', + minValue: 0, + maxValue: 10*1024, + value: cdata.rate, + emptyText: 'unlimited', + allowBlank: true, + }, + ]; + me.callParent(); }, });