]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: bulk shutdown: expose new timeout and force-stop to user
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 14 Jan 2023 16:35:30 +0000 (17:35 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 14 Jan 2023 16:41:04 +0000 (17:41 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/BulkAction.js

index e2675e88d7e7df83c2ff66dbc3966456d40336c9..4eece7d343acefbdfd1d3b861db1327535d3df14 100644 (file)
@@ -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,