From c90cfa46600d39b60bd44c4f6820e5f837a59f9d Mon Sep 17 00:00:00 2001 From: KMY Date: Sat, 19 Aug 2023 18:29:00 +0900 Subject: [PATCH] Fix antenna navigation is not active on antenna_timeline --- .../mastodon/features/ui/components/navigation_panel.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx index f680683cae..ab39b21a14 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx +++ b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx @@ -50,6 +50,10 @@ class NavigationPanel extends Component { return (match || location.pathname.startsWith('/public')) && !location.pathname.endsWith('/fixed'); }; + isAntennasActive = (match, location) => { + return (match || location.pathname.startsWith('/antennast')); + }; + render () { const { intl } = this.props; const { signedIn, disabledAccountId } = this.context.identity; @@ -93,7 +97,6 @@ class NavigationPanel extends Component { {signedIn && ( <> -
@@ -101,6 +104,8 @@ class NavigationPanel extends Component { {signedIn && ( <> + + @@ -110,7 +115,6 @@ class NavigationPanel extends Component { {signedIn && ( <> -