[pbs-devel] [PATCH proxmox-backup 2/3] ui: Show if Filter includes or excludes

Lukas Wagner l.wagner at proxmox.com
Tue Oct 24 14:20:24 CEST 2023



On 10/23/23 17:43, Philipp Hufnagl wrote:
> @@ -163,8 +183,12 @@ Ext.define('PBS.form.GroupFilter', {
>   
>   	    let filter = [];
>   	    me.lookup('grid').getStore().each((rec) => {
> -		if (rec.data.type && rec.data.input) {
> -		    filter.push(`${rec.data.type}:${rec.data.input}`);
> +		if (rec.data.type && rec.data.input && rec.data.behaviour) {
> +		    let behaviour_string = '';
> +		    if (rec.data.behaviour === 'exclude') {
> +			behaviour_string = 'exclude:';
                                 ^
should be in camelCase, according to our JS Style guide

> +		    }
> +		    filter.push(`${behaviour_string}${rec.data.type}:${rec.data.input}`);
>   		}
>   	    });
>   


-- 
- Lukas





More information about the pbs-devel mailing list