mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
feat(dashboard): pending guild names count on the Review Queue and Guilds badges
The dashboard snapshot counts guilds whose name waits for moderation; the moderation counts (WebSocket and /api/moderation/counts) include it, the Review Queue badge adds it for staff with guilds_manage, and the Guilds menu entry has its own badge. Check: create a guild with a name off the allow list: both badges go up; approve it: they go down. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,8 +126,9 @@
|
||||
|
||||
function updateBadges(counts) {
|
||||
var map = {
|
||||
'moderation': (counts.pendingNames || 0) + (DASH.can('moderate_pet_names') ? counts.pendingPetNames || 0 : 0) + (DASH.can('moderate_properties') ? counts.pendingProperties || 0 : 0),
|
||||
'moderation': (counts.pendingNames || 0) + (DASH.can('moderate_pet_names') ? counts.pendingPetNames || 0 : 0) + (DASH.can('guilds_manage') ? counts.pendingGuildNames || 0 : 0) + (DASH.can('moderate_properties') ? counts.pendingProperties || 0 : 0),
|
||||
'pet_names': counts.pendingPetNames || 0,
|
||||
'guilds': counts.pendingGuildNames || 0,
|
||||
'bug_reports': counts.unresolvedBugReports || 0,
|
||||
'reports': counts.openEconomyFlags || 0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user