Skip to content

Commit

Permalink
Add strings
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Sep 23, 2024
1 parent 96d925e commit 03deb13
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/findings/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ const Form = ({ defaultValues, onSubmit }) => {
value: 'theme-im',
label: intl.formatMessage({ id: 'Findings.Themes.Options.IM' }),
},
{
value: 'theme-circumvention',
label: intl.formatMessage({
id: 'Findings.Themes.Options.Circumvention',
}),
},
{
value: 'theme-news_media',
label: intl.formatMessage({ id: 'Findings.Themes.Options.NewsMedia' }),
Expand Down
2 changes: 1 addition & 1 deletion pages/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Login = () => {

// If user is already logged in, redirect to home page
useEffect(() => {
if (!loading && user && !token) {
if (!loading && user?.logged_in && !token) {
router.replace('/')
}
}, [user, loading, router, token])
Expand Down
6 changes: 6 additions & 0 deletions public/static/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,12 @@
"Findings.Form.Author.Label": "Author*",
"Findings.Form.EmailAddress.Label": "Email Address*",
"Findings.Form.Published.Label": "Published",
"Findings.Form.Themes.Label": "Themes",
"Findings.Themes.Options.SocialMedia": "Social Media",
"Findings.Themes.Options.IM": "Instant Messaging",
"Findings.Themes.Options.NewsMedia": "News Media",
"Findings.Themes.Options.HumanRights": "Human Rights",
"Findings.Themes.Options.Circumvention": "Circumvention",
"Findings.LoginRequiredModal.Title": "Email address is missing. Please log in again to be able to create a censorship finding.",
"Findings.Display.NotFound": "Censorship Finding not found",
"Findings.Display.CreatedByOn": "published by {reportedBy} on {formattedDate}",
Expand Down

0 comments on commit 03deb13

Please sign in to comment.