From 012860a49a0f3b0b0c8af2bd199b743d986597b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 30 Apr 2022 19:17:22 -0400 Subject: [PATCH] feat: show number of selected posts in reject confirm --- public/language/en-GB/post-queue.json | 2 +- public/src/client/post-queue.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/language/en-GB/post-queue.json b/public/language/en-GB/post-queue.json index 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 file diff --git a/public/src/client/post-queue.js b/public/src/client/post-queue.js index 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];