Reviewed and tested, looks good.

As this checks is now in a few places a PVE.Utils helper could be appropriate?

On 07/19/2017 03:45 PM, Dominik Csapak wrote:
Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
  www/manager6/lxc/Config.js | 1 +
  1 file changed, 1 insertion(+)

diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 245de8ed..fbaccefe 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -85,6 +85,7 @@ Ext.define('PVE.lxc.Config', {
        var migrateBtn = Ext.create('Ext.Button', {
            text: gettext('Migrate'),
            disabled: !caps.vms['VM.Migrate'],
+           hidden: PVE.data.ResourceStore.getNodes().length < 2,
            handler: function() {
                var win = Ext.create('PVE.window.Migrate', {
                    vmtype: 'lxc',



_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to