ui: restore: fix bandwidth limit behavior

by allowing zero and updating the field name. Otherwise the hint mentioning zero
is wrong. Also, it's not only a read limit as the emptyText already indicates.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-03-15 12:57:29 +01:00 committed by Thomas Lamprecht
parent dcbc3b3ee9
commit 9ae4a024f0

View File

@ -59,7 +59,8 @@ Ext.define('PVE.window.Restore', {
xtype: 'pveBandwidthField',
name: 'bwlimit',
backendUnit: 'KiB',
fieldLabel: gettext('Read Limit'),
allowZero: true,
fieldLabel: gettext('Bandwidth Limit'),
emptyText: gettext('Defaults to target storage restore limit'),
autoEl: {
tag: 'div',