mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-17 09:06:49 +00:00
node/Tasks: don't count 'preFilters' as normal filters
they can not be removed nor are they visible, so don't count them. When having a prefilter, we now don't show anymore that there is an active filter, and don't enable the button anymore. This is the case for vms for example (vmid is a prefilter). Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
96fb7eaacd
commit
64c1d6191c
@ -165,9 +165,11 @@ Ext.define('Proxmox.node.Tasks', {
|
||||
}
|
||||
|
||||
if (get('extraFilter')) {
|
||||
let preFilter = get('preFilter') || {};
|
||||
let extraFilter = get('extraFilter');
|
||||
for (const value of Object.values(extraFilter)) {
|
||||
if (value !== undefined && value !== null && value !== "") {
|
||||
for (const [name, value] of Object.entries(extraFilter)) {
|
||||
if (value !== undefined && value !== null && value !== "" &&
|
||||
preFilter[name] === undefined) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
@ -458,6 +460,8 @@ Ext.define('Proxmox.node.Tasks', {
|
||||
updateExtraFilters(name, value);
|
||||
}
|
||||
|
||||
me.getViewModel().set('preFilter', me.preFilter);
|
||||
|
||||
me.callParent();
|
||||
|
||||
let addFields = function(items) {
|
||||
|
Loading…
Reference in New Issue
Block a user