[pve-devel] [PATCH manager 14/17] hide migrate button in lxc for non cluster setups
Dominik Csapak
d.csapak at proxmox.com
Wed Jul 19 15:45:26 CEST 2017
Signed-off-by: Dominik Csapak <d.csapak at 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',
--
2.11.0
More information about the pve-devel
mailing list