[pmg-devel] [PATCH pmg-gui v2] fix #4510: add filter box to many grids

Mira Limbeck m.limbeck at proxmox.com
Wed Feb 21 15:45:56 CET 2024


On 2/21/24 14:01, Dominik Csapak wrote:
> namely relay domains, transports, trusted networks, smtp whitelist +
> when/what/who object grids.
> 
> Adds a new 'FilterField', that takes a store and a list of columns to
> filter, and filters on every change.
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes from v1:
> * lookup store automatically
> * add ability to add a renderer so that we can match that what is displayed
> * add that for the ObjectGroup's otype filter (previously otype_text)
> 
>  js/Makefile            |  1 +
>  js/MyNetworks.js       |  5 ++++
>  js/ObjectGroup.js      | 11 ++++++++
>  js/RelayDomains.js     |  5 ++++
>  js/Transport.js        |  5 ++++
>  js/form/FilterField.js | 58 ++++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 85 insertions(+)
>  create mode 100644 js/form/FilterField.js
> 

The ObjectGroup filter now works on the visible text, as one would expect.

One thing I found:
IP: 10.67.0.100
Filter: 10.67. -> works

IP: 10.67.0.100
Filter: 10.67.1 -> no match

now, when you remove the `1` it should show a match again, but doesn't.
only clearing the whole filter and adding the `10.67.` again works.






More information about the pmg-devel mailing list