[pve-devel] [PATCH manager] ui: restore: add bandwidth limit field
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Mar 21 17:07:44 CET 2018
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
www/manager6/window/Restore.js | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js
index 14969f09..477c52db 100644
--- a/www/manager6/window/Restore.js
+++ b/www/manager6/window/Restore.js
@@ -50,7 +50,14 @@ Ext.define('PVE.window.Restore', {
fieldLabel: gettext('Source')
},
storagesel,
- IDfield
+ IDfield,
+ {
+ xtype: 'proxmoxintegerfield',
+ name: 'bwlimit',
+ fieldLabel: gettext('Bandwidth Limit (KiB/s)'),
+ minValue: 0,
+ emptyText: gettext('Storage Default Limit')
+ }
];
if (me.vmtype === 'lxc') {
@@ -107,6 +114,10 @@ Ext.define('PVE.window.Restore', {
force: me.vmid ? 1 : 0
};
+ if (values.bwlimit !== undefined) {
+ params.bwlimit = values.bwlimit;
+ }
+
var url;
var msg;
if (me.vmtype === 'lxc') {
--
2.14.2
More information about the pve-devel
mailing list