From 90dae08ceb38e5a09385e9233706cb3cff7e95be Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Wed, 5 Apr 2023 17:14:19 -0400 Subject: [PATCH] :seedling: Place jira integration behind waves feature flag (#802) Signed-off-by: ibolton336 --- client/src/app/Routes.tsx | 14 ++++++---- .../src/app/layout/SidebarApp/SidebarApp.tsx | 26 ++++++++++--------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/client/src/app/Routes.tsx b/client/src/app/Routes.tsx index 8f8a17307e..9c5ca3bd3d 100644 --- a/client/src/app/Routes.tsx +++ b/client/src/app/Routes.tsx @@ -112,11 +112,15 @@ export const adminRoutes: IRoute[] = [ }, { comp: Proxies, path: "/proxies", exact: false }, { comp: MigrationTargets, path: "/migration-targets", exact: false }, - { - comp: Jira, - path: Paths.jira, - exact: false, - }, + ...(FEATURES_ENABLED.migrationWaves + ? [ + { + comp: Jira, + path: Paths.jira, + exact: false, + }, + ] + : []), ]; export const AppRoutes = () => { const location = useLocation(); diff --git a/client/src/app/layout/SidebarApp/SidebarApp.tsx b/client/src/app/layout/SidebarApp/SidebarApp.tsx index 14c7d5dbea..b826e9264d 100644 --- a/client/src/app/layout/SidebarApp/SidebarApp.tsx +++ b/client/src/app/layout/SidebarApp/SidebarApp.tsx @@ -163,18 +163,20 @@ export const SidebarApp: React.FC = () => { Custom migration targets - - - - Jira - - - + {FEATURES_ENABLED.migrationWaves ? ( + + + + Jira + + + + ) : null} )}