]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: traffic-control edit: send rates as stringified, auto-scaled size-unit
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Nov 2021 21:08:22 +0000 (22:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Nov 2021 21:08:22 +0000 (22:08 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/window/TrafficControlEdit.js

index caf79b5799d9c4e416e6bf77ab1cd335f6adf55f..4907c1f1bef4daa5b088a9802207d4356681b41d 100644 (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,
            },
        ],