Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
5fa34093
Unverified
Commit
5fa34093
authored
2 years ago
by
Eugen Rochko
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix closed registrations message not appearing in web UI (#19508)
Regression from #19486
parent
dae954ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/javascript/mastodon/features/closed_registrations_modal/index.js
+3
-3
...ipt/mastodon/features/closed_registrations_modal/index.js
with
3 additions
and
3 deletions
+3
-3
app/javascript/mastodon/features/closed_registrations_modal/index.js
+
3
-
3
View file @
5fa34093
...
...
@@ -6,7 +6,7 @@ import { domain } from 'mastodon/initial_state';
import
{
fetchServer
}
from
'
mastodon/actions/server
'
;
const
mapStateToProps
=
state
=>
({
closed_registrations_
message
:
state
.
getIn
([
'
server
'
,
'
server
'
,
'
registrations
'
,
'
closed_registrations_
message
'
]),
message
:
state
.
getIn
([
'
server
'
,
'
server
'
,
'
registrations
'
,
'
message
'
]),
});
export
default
@
connect
(
mapStateToProps
)
...
...
@@ -20,11 +20,11 @@ class ClosedRegistrationsModal extends ImmutablePureComponent {
render
()
{
let
closedRegistrationsMessage
;
if
(
this
.
props
.
closed_registrations_
message
)
{
if
(
this
.
props
.
message
)
{
closedRegistrationsMessage
=
(
<
p
className
=
'
prose
'
dangerouslySetInnerHTML
=
{{
__html
:
this
.
props
.
closed_registrations_
message
}}
dangerouslySetInnerHTML
=
{{
__html
:
this
.
props
.
message
}}
/
>
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets