[pbs-devel] applied: [PATCH proxmox-backup 1/2] ui: fix error when reloading DataStoreContent

Dietmar Maurer dietmar at proxmox.com
Wed Jul 29 07:13:41 CEST 2020


applied

> On 07/28/2020 2:32 PM Stefan Reiter <s.reiter at proxmox.com> wrote:
> 
>  
> ...when an entry is selected, that doesn't exist after the reload.
> 
> E.g. when one deletes selects a file within a snapshot and then clicks
> the delete icon for said snapshot, focusRow would then fail and the
> loading mask stay on until a reload.
> 
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
>  www/DataStoreContent.js | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js
> index 5f407e98..1c08f56a 100644
> --- a/www/DataStoreContent.js
> +++ b/www/DataStoreContent.js
> @@ -232,8 +232,10 @@ Ext.define('PBS.DataStoreContent', {
>  		    }
>  		    return selected === id;
>  		}, undefined, true);
> -		view.setSelection(selection);
> -		view.getView().focusRow(selection);
> +		if (selection) {
> +		    view.setSelection(selection);
> +		    view.getView().focusRow(selection);
> +		}
>  	    }
>  
>  	    Proxmox.Utils.setErrorMask(view, false);
> -- 
> 2.20.1
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel





More information about the pbs-devel mailing list