mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 14:50:23 +00:00
ui: parser: add helper for lists of property strings
namely the filtering while preserving the original string, it's just one line, but having a shorthand for it still makes it a bit nicer Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
797bcf9aa2
commit
d5a9606710
@ -604,5 +604,9 @@ Ext.define('PVE.Parser', {
|
||||
});
|
||||
return [res, extradata];
|
||||
},
|
||||
|
||||
filterPropertyStringList: function(list, filterFn, defaultKey) {
|
||||
return list.filter((entry) => filterFn(PVE.Parser.parsePropertyString(entry, defaultKey)));
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user