gui: move rate limit field to advanced section

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 <d.tschlatscher@proxmox.com>
Reviewed-by:  Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by:  Stefan Hanreich <s.hanreich@proxmox.com>
This commit is contained in:
Daniel Tschlatscher 2022-11-03 16:38:09 +01:00 committed by Thomas Lamprecht
parent 4e192f9df8
commit 37985d657c

View File

@ -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();
},
});