mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +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": "Reject All", | ||||||
| 	"reject-all-confirm": "Do you want to reject all posts?", | 	"reject-all-confirm": "Do you want to reject all posts?", | ||||||
| 	"reject-selected": "Reject Selected", | 	"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-accept-success": "%1 posts accepted", | ||||||
| 	"bulk-reject-success": "%1 posts rejected" | 	"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 ids = queueEls.map((i, el) => $(el).attr('data-id')).get(); | ||||||
| 			const showConfirm = bulkAction === 'reject-all' || bulkAction === 'reject-selected'; | 			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; | 				return; | ||||||
| 			} | 			} | ||||||
| 			const action = bulkAction.split('-')[0]; | 			const action = bulkAction.split('-')[0]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user