Node.js based forum software built for the modern web
feat: show number of selected posts in reject confirm
Barış Soner Uşaklı012860a49a0f
diff --git a/public/language/en-GB/post-queue.json b/public/language/en-GB/post-queue.jsonindex 952342286f..e80369c2a7 100644--- a/public/language/en-GB/post-queue.json+++ b/public/language/en-GB/post-queue.json@@ -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"}\ No newline at end of filediff --git a/public/src/client/post-queue.js b/public/src/client/post-queue.jsindex 4d6ce858ff..c33fa0486a 100644--- a/public/src/client/post-queue.js+++ b/public/src/client/post-queue.js@@ -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];