From d93d29a8b1bfe52b4de2422c7b6cf5f9290237bc Mon Sep 17 00:00:00 2001 From: James Xylight Date: Sat, 30 Aug 2025 14:45:06 -0700 Subject: [PATCH] fix: custom labels causing missing select --- .../components/ui/navbar/commands/actions.svelte.ts | 2 +- src/lib/i18n/en.json | 4 ++-- src/lib/mono/forms/Label.svelte | 11 +++++++---- src/lib/mono/forms/select/Select.svelte | 3 +-- src/lib/mono/modal/Modal.svelte | 2 +- src/routes/moderation/+page.svelte | 12 +++++++----- 6 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/lib/components/ui/navbar/commands/actions.svelte.ts b/src/lib/components/ui/navbar/commands/actions.svelte.ts index 31b3243a..39667e06 100644 --- a/src/lib/components/ui/navbar/commands/actions.svelte.ts +++ b/src/lib/components/ui/navbar/commands/actions.svelte.ts @@ -182,7 +182,7 @@ export function getGroups( { name: t.get('filter.sort.top.time.6hours'), icon: ChartBar, - href: '/?sort=TopSixHours', + href: '/?sort=TopSixHour', }, { name: t.get('filter.sort.top.time.hour'), diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 0945fbd8..7f9453a2 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -603,12 +603,12 @@ "title": "Removing Submission", "titleRestore": "Restoring Submission", "titlePurge": "Purging Submission", - "withReason": "Reply with reason", + "withReason": "Notify user", "comment": "Comment", "message": "Message", "failReply": "Failed to post reply. Removing anyway...", "failMessage": "Failed to message user. Removing anyway...", - "failEmptyReply": "Your reply cannot be empty if 'Reply with reason' is enabled.", + "failEmptyReply": "Your reply cannot be empty if 'Notify user' is enabled.", "successPurge": "Successfully purged that submission." }, "reportModal": { diff --git a/src/lib/mono/forms/Label.svelte b/src/lib/mono/forms/Label.svelte index 84d943f1..cd8d106f 100644 --- a/src/lib/mono/forms/Label.svelte +++ b/src/lib/mono/forms/Label.svelte @@ -1,4 +1,5 @@ {#snippet selectTarget(attachment: Attachment)} -