ui: storage content: support filtering by notes for backups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0356688f28
commit
5a912de3f3
@ -110,18 +110,18 @@ Ext.define('PVE.storage.ContentView', {
|
||||
xtype: 'textfield',
|
||||
width: 200,
|
||||
enableKeyEvents: true,
|
||||
emptyText: gettext('Name, Format'),
|
||||
emptyText: content === 'backup' ? gettext('Name, Format, Notes') : gettext('Name, Format'),
|
||||
listeners: {
|
||||
keyup: {
|
||||
buffer: 500,
|
||||
fn: function(field) {
|
||||
let needle = field.getValue().toLocaleLowerCase();
|
||||
store.clearFilter(true);
|
||||
store.filter([
|
||||
{
|
||||
property: 'text',
|
||||
value: field.getValue(),
|
||||
anyMatch: true,
|
||||
caseSensitive: false,
|
||||
filterFn: ({ data }) =>
|
||||
data.text?.toLocaleLowerCase().includes(needle) ||
|
||||
data.notes?.toLocaleLowerCase().includes(needle),
|
||||
},
|
||||
]);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user