Require additional info if report account

This commit is contained in:
Lim Chee Aun 2024-08-20 20:17:28 +08:00
parent 3902db5c0b
commit 0e539ba2cb
2 changed files with 9 additions and 8 deletions

View file

@ -239,6 +239,7 @@ function ReportModal({ account, post, onClose }) {
name="comment" name="comment"
id="report-comment" id="report-comment"
disabled={uiState === 'loading'} disabled={uiState === 'loading'}
required={!post} // Required if not reporting a post
/> />
</section> </section>
{!!domain && domain !== currentDomain && ( {!!domain && domain !== currentDomain && (

View file

@ -1653,35 +1653,35 @@ msgstr ""
msgid "Additional info" msgid "Additional info"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:255 #: src/components/report-modal.jsx:256
msgid "Forward to <0>{domain}</0>" msgid "Forward to <0>{domain}</0>"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:265 #: src/components/report-modal.jsx:266
msgid "Send Report" msgid "Send Report"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:274 #: src/components/report-modal.jsx:275
msgid "Muted {username}" msgid "Muted {username}"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:277 #: src/components/report-modal.jsx:278
msgid "Unable to mute {username}" msgid "Unable to mute {username}"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:282 #: src/components/report-modal.jsx:283
msgid "Send Report <0>+ Mute profile</0>" msgid "Send Report <0>+ Mute profile</0>"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:293 #: src/components/report-modal.jsx:294
msgid "Blocked {username}" msgid "Blocked {username}"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:296 #: src/components/report-modal.jsx:297
msgid "Unable to block {username}" msgid "Unable to block {username}"
msgstr "" msgstr ""
#: src/components/report-modal.jsx:301 #: src/components/report-modal.jsx:302
msgid "Send Report <0>+ Block profile</0>" msgid "Send Report <0>+ Block profile</0>"
msgstr "" msgstr ""