From 0e539ba2cb915dcabe388083469ce4468aee4135 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 20 Aug 2024 20:17:28 +0800 Subject: [PATCH] Require additional info if report account --- src/components/report-modal.jsx | 1 + src/locales/en.po | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/report-modal.jsx b/src/components/report-modal.jsx index 6485ead6..ee1c889a 100644 --- a/src/components/report-modal.jsx +++ b/src/components/report-modal.jsx @@ -239,6 +239,7 @@ function ReportModal({ account, post, onClose }) { name="comment" id="report-comment" disabled={uiState === 'loading'} + required={!post} // Required if not reporting a post /> {!!domain && domain !== currentDomain && ( diff --git a/src/locales/en.po b/src/locales/en.po index f7c27a98..566dbb2b 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -1653,35 +1653,35 @@ msgstr "" msgid "Additional info" msgstr "" -#: src/components/report-modal.jsx:255 +#: src/components/report-modal.jsx:256 msgid "Forward to <0>{domain}" msgstr "" -#: src/components/report-modal.jsx:265 +#: src/components/report-modal.jsx:266 msgid "Send Report" msgstr "" -#: src/components/report-modal.jsx:274 +#: src/components/report-modal.jsx:275 msgid "Muted {username}" msgstr "" -#: src/components/report-modal.jsx:277 +#: src/components/report-modal.jsx:278 msgid "Unable to mute {username}" msgstr "" -#: src/components/report-modal.jsx:282 +#: src/components/report-modal.jsx:283 msgid "Send Report <0>+ Mute profile" msgstr "" -#: src/components/report-modal.jsx:293 +#: src/components/report-modal.jsx:294 msgid "Blocked {username}" msgstr "" -#: src/components/report-modal.jsx:296 +#: src/components/report-modal.jsx:297 msgid "Unable to block {username}" msgstr "" -#: src/components/report-modal.jsx:301 +#: src/components/report-modal.jsx:302 msgid "Send Report <0>+ Block profile" msgstr ""