Skip to content

Commit 970c0b4

Browse files
added all-runs in menu.
1 parent af25b54 commit 970c0b4

File tree

1 file changed

+19
-0
lines changed
  • src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu

1 file changed

+19
-0
lines changed

src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu/index.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ export const Menu: React.FC = () => {
3737
to={routePaths.pipelines.list}
3838
text={translate('menu.pipelines.text')}
3939
/>
40+
<MenuItem
41+
isActive={() => {
42+
return (
43+
!!matchPath(locationPath, {
44+
path: routePaths.pipelines.allRuns,
45+
exact: false,
46+
}) ||
47+
!!matchPath(locationPath, {
48+
path: routePaths.run.run.base(':id'),
49+
exact: false,
50+
})
51+
);
52+
}}
53+
Icon={() => (
54+
<icons.pipeline color={iconColors.white} size={iconSizes.md} />
55+
)}
56+
to={routePaths.pipelines.allRuns}
57+
text={'Runs'}
58+
/>
4059
<MenuItem
4160
isActive={() => {
4261
return (

0 commit comments

Comments
 (0)