aboutsummaryrefslogtreecommitdiff
path: root/app/javascript/mastodon/components/column_header.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-09-29 06:21:51 +0200
committerGitHub <noreply@github.com>2022-09-29 06:21:51 +0200
commite623c302d5d4dfc05689eb8fb8e051e30fc38ec8 (patch)
treeefbcb457a8b797a2a71a6b0187348a2dfb632de1 /app/javascript/mastodon/components/column_header.js
parent43b5d5e38d2b8ad8f1d1ad0911c3c1718159c912 (diff)
downloadmastodon-e623c302d5d4dfc05689eb8fb8e051e30fc38ec8.tar
mastodon-e623c302d5d4dfc05689eb8fb8e051e30fc38ec8.tar.gz
mastodon-e623c302d5d4dfc05689eb8fb8e051e30fc38ec8.tar.bz2
mastodon-e623c302d5d4dfc05689eb8fb8e051e30fc38ec8.zip
Add sign-up button to logged-out web UI (#19250)
Diffstat (limited to 'app/javascript/mastodon/components/column_header.js')
-rw-r--r--app/javascript/mastodon/components/column_header.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/column_header.js b/app/javascript/mastodon/components/column_header.js
index cbbc490a8..5b2e16627 100644
--- a/app/javascript/mastodon/components/column_header.js
+++ b/app/javascript/mastodon/components/column_header.js
@@ -17,6 +17,7 @@ class ColumnHeader extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
+ identity: PropTypes.object,
};
static propTypes = {
@@ -145,7 +146,7 @@ class ColumnHeader extends React.PureComponent {
collapsedContent.push(moveButtons);
}
- if (children || (multiColumn && this.props.onPin)) {
+ if (this.context.identity.signedIn && (children || (multiColumn && this.props.onPin))) {
collapseButton = (
<button
className={collapsibleButtonClassName}