mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-16 04:35:25 +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');
|
var list = this.lookupReference('list');
|
||||||
|
|
||||||
if (selected.length > 1) {
|
if (selected.length > 1) {
|
||||||
var idlist = [];
|
let idlist = selected.map(item => item.data.id);
|
||||||
selected.forEach(function(item) {
|
|
||||||
idlist.push(item.data.id);
|
|
||||||
});
|
|
||||||
Ext.Msg.confirm(
|
Ext.Msg.confirm(
|
||||||
gettext('Confirm'),
|
gettext('Confirm'),
|
||||||
Ext.String.format(
|
Ext.String.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user