ui: bulk shutdown: expose new timeout and force-stop to user

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-01-14 17:35:30 +01:00
parent 7be0f644b3
commit a75bace1f4

View 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,