Skip to content

Commit

Permalink
🌱 Place jira integration behind waves feature flag (#802)
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 authored Apr 5, 2023
1 parent 9827d14 commit 90dae08
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
14 changes: 9 additions & 5 deletions client/src/app/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
26 changes: 14 additions & 12 deletions client/src/app/layout/SidebarApp/SidebarApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,20 @@ export const SidebarApp: React.FC = () => {
Custom migration targets
</NavLink>
</NavItem>
<NavExpandable
title="Issue management"
srText="SR Link"
groupId="admin-issue-management"
isExpanded
>
<NavItem>
<NavLink to={Paths.jira} activeClassName="pf-m-current">
Jira
</NavLink>
</NavItem>
</NavExpandable>
{FEATURES_ENABLED.migrationWaves ? (
<NavExpandable
title="Issue management"
srText="SR Link"
groupId="admin-issue-management"
isExpanded
>
<NavItem>
<NavLink to={Paths.jira} activeClassName="pf-m-current">
Jira
</NavLink>
</NavItem>
</NavExpandable>
) : null}
</NavList>
)}
</Nav>
Expand Down

0 comments on commit 90dae08

Please sign in to comment.