From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Matthias Heiserer <m.heiserer@proxmox.com>
Subject: Re: [pve-devel] [PATCH widget-toolkit V2] ComboGrid: fix sorting when filtering
Date: Wed, 27 Apr 2022 12:01:38 +0200 [thread overview]
Message-ID: <6b2df114-d719-4b6e-4668-9768c642d1ad@proxmox.com> (raw)
In-Reply-To: <20220316113418.748393-1-m.heiserer@proxmox.com>
On 16.03.22 12:34, Matthias Heiserer wrote:
> When clicking on a column to sort it, the filter doesn't reset.
> Previously, it forgot the filter until the value was changed.
>
> Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
> ---
> Changes from v1:
> Introduce a config property to (en|dis)disable clearing the filter
nit, ant I don't want to be annoying, but can you please add a empty line
below, and maybe even above the series-change log for easier visibility?
I'd at least appreciate that quite a bit, thx!
> src/form/ComboGrid.js | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/src/form/ComboGrid.js b/src/form/ComboGrid.js
> index 33c1d75..fa1078d 100644
> --- a/src/form/ComboGrid.js
> +++ b/src/form/ComboGrid.js
> @@ -12,6 +12,9 @@ Ext.define('Proxmox.form.ComboGrid', {
>
> // this value is used as default value after load()
> preferredValue: undefined,
> + clearFilterOnBlur: false,
this changes the default of an ExtJS config that is used in other context though?
> + clearFilterOnExit: true,
> +
>
> // hack: allow to select empty value
> // seems extjs does not allow that when 'editable == false'
> @@ -470,4 +473,12 @@ Ext.define('Proxmox.form.ComboGrid', {
> }
> });
> },
> +
> + listeners: {
> + collapse: function() {
> + if (this.clearFilterOnExit) {
> + this.clearLocalFilter();
> + }
> + },
> + },
> });
next prev parent reply other threads:[~2022-04-27 10:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-16 11:34 Matthias Heiserer
2022-04-27 10:01 ` Thomas Lamprecht [this message]
2022-04-28 9:57 ` Matthias Heiserer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6b2df114-d719-4b6e-4668-9768c642d1ad@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=m.heiserer@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox