From b988634e4e3b428b5ad2e830baa5b69263675eae Mon Sep 17 00:00:00 2001 From: ThibG Date: Thu, 13 Jun 2019 00:16:27 +0200 Subject: [PATCH] Only show profile directory link when it's enabled (#11064) --- .../mastodon/features/ui/components/navigation_panel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.js b/app/javascript/mastodon/features/ui/components/navigation_panel.js index 1d783ba1bc..ef3ad2e092 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_panel.js +++ b/app/javascript/mastodon/features/ui/components/navigation_panel.js @@ -2,6 +2,7 @@ import React from 'react'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; +import { profile_directory } from 'mastodon/initial_state'; import NotificationsCounterIcon from './notifications_counter_icon'; import FollowRequestsNavLink from './follow_requests_nav_link'; import ListPanel from './list_panel'; @@ -23,7 +24,7 @@ const NavigationPanel = () => ( - + {!!profile_directory && } );