]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/window/BulkAction.js
ui: guest import: fix isWindows check
[pve-manager.git] / www / manager6 / window / BulkAction.js
index 5f76ef7a43f64f070e13a20867c6d881f54083be..c8132753e1ff554e5c7ad97fe8af019b540368c1 100644 (file)
@@ -10,7 +10,7 @@ Ext.define('PVE.window.BulkAction', {
     },
     border: false,
 
-    // the action to set, currently there are: `startall`, `migrateall`, `stopall`
+    // the action to set, currently there are: `startall`, `migrateall`, `stopall`, `suspendall`
     action: undefined,
 
     submit: function(params) {
@@ -144,6 +144,7 @@ Ext.define('PVE.window.BulkAction', {
        };
 
        let defaultStatus = me.action === 'migrateall' ? '' : me.action === 'startall' ? 'stopped' : 'running';
+       let defaultType = me.action === 'suspendall' ? 'qemu' : '';
 
        let statusMap = [];
        let poolMap = [];
@@ -318,7 +319,7 @@ Ext.define('PVE.window.BulkAction', {
                            fieldLabel: gettext("Type"),
                            emptyText: gettext('All'),
                            editable: false,
-                           value: '',
+                           value: defaultType,
                            store: [
                                ['', gettext('All')],
                                ['lxc', gettext('CT')],