feat: show number of selected posts in reject confirm

isekai-main
Barış Soner Uşaklı 3 years ago
parent 23175110a2
commit 012860a49a

@ -25,7 +25,7 @@
"reject-all": "Reject All",
"reject-all-confirm": "Do you want to reject all posts?",
"reject-selected": "Reject Selected",
"reject-selected-confirm": "Do you want to reject selected posts?",
"reject-selected-confirm": "Do you want to reject %1 selected posts?",
"bulk-accept-success": "%1 posts accepted",
"bulk-reject-success": "%1 posts rejected"
}

@ -162,7 +162,7 @@ define('forum/post-queue', [
}
const ids = queueEls.map((i, el) => $(el).attr('data-id')).get();
const showConfirm = bulkAction === 'reject-all' || bulkAction === 'reject-selected';
if (!ids.length || (showConfirm && !(await confirmReject(`[[post-queue:${bulkAction}-confirm]]`)))) {
if (!ids.length || (showConfirm && !(await confirmReject(`[[post-queue:${bulkAction}-confirm, ${ids.length}]]`)))) {
return;
}
const action = bulkAction.split('-')[0];

Loading…
Cancel
Save