mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-14 06:58:53 +00:00
spam quarantine: shorter mapping from selected to id list
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0bd9ee2261
commit
b61e38d711
@ -118,10 +118,7 @@ Ext.define('PMG.SpamQuarantine', {
|
||||
var list = this.lookupReference('list');
|
||||
|
||||
if (selected.length > 1) {
|
||||
var idlist = [];
|
||||
selected.forEach(function(item) {
|
||||
idlist.push(item.data.id);
|
||||
});
|
||||
let idlist = selected.map(item => item.data.id);
|
||||
Ext.Msg.confirm(
|
||||
gettext('Confirm'),
|
||||
Ext.String.format(
|
||||
|
Loading…
Reference in New Issue
Block a user