ui: traffic-control edit: send rates as stringified, auto-scaled size-unit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-20 22:08:22 +01:00
parent ff344655e2
commit f2c9da2349

View File

@ -242,13 +242,17 @@ Ext.define('PBS.window.TrafficControlEdit', {
},
{
xtype: 'pmxBandwidthField',
fieldLabel: gettext('Rate In'),
name: 'rate-in',
fieldLabel: gettext('Rate In'),
emptyText: gettext('Unlimited'),
submitAutoScaledSizeUnit: true,
},
{
xtype: 'pmxBandwidthField',
fieldLabel: gettext('Rate Out'),
name: 'rate-out',
fieldLabel: gettext('Rate Out'),
emptyText: gettext('Unlimited'),
submitAutoScaledSizeUnit: true,
},
],
@ -263,13 +267,17 @@ Ext.define('PBS.window.TrafficControlEdit', {
},
{
xtype: 'pmxBandwidthField',
fieldLabel: gettext('Burst In'),
name: 'burst-in',
fieldLabel: gettext('Burst In'),
emptyText: gettext('Same as Rate'),
submitAutoScaledSizeUnit: true,
},
{
xtype: 'pmxBandwidthField',
fieldLabel: gettext('Burst Out'),
name: 'burst-out',
fieldLabel: gettext('Burst Out'),
emptyText: gettext('Same as Rate'),
submitAutoScaledSizeUnit: true,
},
],