]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: hide bulk migrate options on standalone nodes
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 13 Nov 2023 08:59:31 +0000 (09:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Nov 2023 10:19:46 +0000 (11:19 +0100)
since there is nowhere to migrate to and we hide the regular migrate
buttons/options too.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/node/CmdMenu.js
www/manager6/node/Config.js

index dc56ef081aac42ba8c985eacce0562c32967d94d..1dbcd781addba9648f1d2aae2c73daeb53f37885 100644 (file)
@@ -139,5 +139,9 @@ Ext.define('PVE.node.CmdMenu', {
        if (me.pveSelNode.data.running) {
            me.getComponent('wakeonlan').setDisabled(true);
        }
+
+       if (PVE.Utils.isStandaloneNode()) {
+           me.getComponent('bulkmigrate').setVisible(false);
+       }
     },
 });
index 6ed2172aa2ef70319ff30a5b487701d4bace004d..6deafcdf60182c90d7d16a846e35dbd42d5e50a4 100644 (file)
@@ -69,6 +69,7 @@ Ext.define('PVE.node.Config', {
                        text: gettext('Bulk Migrate'),
                        iconCls: 'fa fa-fw fa-send-o',
                        disabled: !caps.vms['VM.Migrate'],
+                       hidden: PVE.Utils.isStandaloneNode(),
                        handler: function() {
                            Ext.create('PVE.window.BulkAction', {
                                autoShow: true,