From a75bace1f47124e736ee6b43f3fbd47e9a5edbcb Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 14 Jan 2023 17:35:30 +0100 Subject: [PATCH] ui: bulk shutdown: expose new timeout and force-stop to user Signed-off-by: Thomas Lamprecht --- www/manager6/window/BulkAction.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/www/manager6/window/BulkAction.js b/www/manager6/window/BulkAction.js index e2675e88..4eece7d3 100644 --- a/www/manager6/window/BulkAction.js +++ b/www/manager6/window/BulkAction.js @@ -106,6 +106,26 @@ Ext.define('PVE.window.BulkAction', { name: 'force', value: 1, }); + } else if (me.action === 'stopall') { + items.push( + { + xtype: 'proxmoxcheckbox', + name: 'force-stop', + fieldLabel: gettext('Force Stop'), + boxLabel: gettext('Force stop guest if shutdown times out.'), + checked: true, + uncheckedValue: 0, + }, + { + xtype: 'proxmoxintegerfield', + name: 'timeout', + fieldLabel: gettext('Timeout (s)'), + emptyText: '180', + minValue: 0, + maxValue: 7200, + allowBlank: true, + }, + ); } items.push({ @@ -138,7 +158,7 @@ Ext.define('PVE.window.BulkAction', { align: 'stretch', }, fieldDefaults: { - labelWidth: 300, + labelWidth: me.action === 'migrateall' ? 300 : 120, anchor: '100%', }, items: items, -- 2.39.5