From 22c6d465d88388a5a900b4324a8d693010805c42 Mon Sep 17 00:00:00 2001 From: ThibG Date: Thu, 13 Jun 2019 00:16:27 +0200 Subject: [Glitch] Only show profile directory link when it's enabled Port 1b4dcc3f7870f60089611c3b3d525978826953c3 to glitch-soc Signed-off-by: Thibaut Girka --- .../flavours/glitch/features/ui/components/navigation_panel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/javascript/flavours/glitch') diff --git a/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js b/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js index 0016b5e4d..4688c7766 100644 --- a/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js +++ b/app/javascript/flavours/glitch/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 'flavours/glitch/components/icon'; +import { profile_directory } from 'flavours/glitch/util/initial_state'; import NotificationsCounterIcon from './notifications_counter_icon'; import FollowRequestsNavLink from './follow_requests_nav_link'; import ListPanel from './list_panel'; @@ -24,7 +25,7 @@ const NavigationPanel = ({ onOpenSettings }) => ( - + {!!profile_directory && } ); -- cgit