[pve-devel] [PATCH manager v2 2/3] hide migrate button in lxc for non cluster setups

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Aug 29 11:41:18 CEST 2017


From: Dominik Csapak <d.csapak at proxmox.com>

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

changes v1 -> v2:
 * none

 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',
-- 
2.11.0





More information about the pve-devel mailing list