From 9ae4a024f06f6c62d68b484eb9f3d56652502e80 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 15 Mar 2021 12:57:29 +0100 Subject: [PATCH] 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 --- www/manager6/window/Restore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js index d220c7bf..9e47ebd6 100644 --- a/www/manager6/window/Restore.js +++ b/www/manager6/window/Restore.js @@ -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',