Skip to content

Commit

Permalink
Merge pull request #1408 from mozzy11/develop
Browse files Browse the repository at this point in the history
add back the home menu link
  • Loading branch information
mozzy11 authored Jan 16, 2025
2 parents e44814c + d3644e2 commit ed358fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ src/main/resources/adminPassword.txt
/.apt_generated/
*/plugins/*.jar
Patient/*
volume/database/data/
volume/*
6 changes: 6 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ export default function App() {
component={() => <Home />}
role=""
/>
<SecureRoute
path="/Dashboard"
exact
component={() => <Home />}
role=""
/>
<SecureRoute
path="/admin"
exact
Expand Down
15 changes: 6 additions & 9 deletions frontend/src/components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,15 +580,12 @@ function OEHeader(props) {
>
<SideNavItems>
{menus["menu"].map((childMenuItem, index) => {
// ignore the Home Menu in the new UI
if (childMenuItem.menu.elementId != "menu_home") {
return generateMenuItems(
childMenuItem,
index,
0,
"$.menu[" + index + "]",
);
}
return generateMenuItems(
childMenuItem,
index,
0,
"$.menu[" + index + "]",
);
})}
</SideNavItems>
</SideNav>
Expand Down

0 comments on commit ed358fc

Please sign in to comment.