[pve-devel] [PATCH manager 14/17] hide migrate button in lxc for non cluster setups

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Aug 23 11:05:04 CEST 2017


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





More information about the pve-devel mailing list