[pve-devel] [PATCH manager] gui: never collapse notes for templates

Thomas Lamprecht t.lamprecht at proxmox.com
Wed May 6 16:40:35 CEST 2020


On 5/6/20 12:34 PM, Stefan Reiter wrote:
> There's no graphs on screen, so no reason to collapse the notes to save
> space. Besides, it looked a bit funky expanding the notes on smaller
> screens, since they always jumped to the bottom to fill the space...
> 
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
>  www/manager6/panel/NotesView.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/www/manager6/panel/NotesView.js b/www/manager6/panel/NotesView.js
> index edf38e5d..90de7b5a 100644
> --- a/www/manager6/panel/NotesView.js
> +++ b/www/manager6/panel/NotesView.js
> @@ -105,7 +105,7 @@ Ext.define('PVE.panel.NotesView', {
>  	me.callParent();
>  	if (type === 'node') {
>  	    me.down('#tbar').setVisible(true);
> -	} else {
> +	} else if (me.pveSelNode.data.template !== 1) {
>  	    me.setCollapsible(true);
>  	    me.collapseDirection = 'right';
>  
> 

applied, thanks!




More information about the pve-devel mailing list