From 8b976c3479a329f730fcd35651aa1a046581ebe8 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 7 Jan 2019 23:59:06 +0100 Subject: [PATCH] Move profile directory link in web UI from footer to discover section (#9745) --- .../features/getting_started/index.js | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/getting_started/index.js b/app/javascript/mastodon/features/getting_started/index.js index feecfd0e45..d56e7f1427 100644 --- a/app/javascript/mastodon/features/getting_started/index.js +++ b/app/javascript/mastodon/features/getting_started/index.js @@ -32,6 +32,7 @@ const messages = defineMessages({ personal: { id: 'navigation_bar.personal', defaultMessage: 'Personal' }, security: { id: 'navigation_bar.security', defaultMessage: 'Security' }, menu: { id: 'getting_started.heading', defaultMessage: 'Getting started' }, + profile_directory: { id: 'getting_started.directory', defaultMessage: 'Profile directory' }, }); const mapStateToProps = state => ({ @@ -87,10 +88,30 @@ class GettingStarted extends ImmutablePureComponent { , , , + ); + + height += 34 + 48*2; + + if (profile_directory) { + navItems.push( + , + ); + + height += 48; + } + + navItems.push( ); - height += 34*2 + 48*2; + height += 34; + } else if (profile_directory) { + navItems.push( + , + , + ); + + height += 34 + 48; } navItems.push( @@ -136,7 +157,6 @@ class GettingStarted extends ImmutablePureComponent {
    - {profile_directory &&
  • ·
  • } {invitesEnabled &&
  • ·
  • } {multiColumn &&
  • ·
  • }
  • ·