mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: show number of selected posts in reject confirm
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user