Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#1005): Rewritten organization management page from JSP to React JS #1040

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import PrintBarcode from "./components/printBarcode/Index";
import NonConformIndex from "./components/nonconform/index";
import SampleBatchEntrySetup from "./components/batchOrderEntry/SampleBatchEntrySetup.js";
import AuditTrailReportIndex from "./components/reports/auditTrailReport/Index.js";
import OrganizationAddEdit from "./components/admin/OrganizationManagement/OrganizationAddModify.js";

export default function App() {
let i18nConfig = {
Expand Down Expand Up @@ -220,6 +221,12 @@ export default function App() {
component={() => <Admin />}
role="Global Administrator"
/>
<SecureRoute
path="/Organization"
exact
component={() => <OrganizationAddEdit />}
role="Global Administrator"
/>
<SecureRoute
path="/MasterListsPage"
exact
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/components/admin/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
ListDropdown,
CicsSystemGroup,
QrCode,
ContainerSoftware,
} from "@carbon/icons-react";
import PathRoute from "../utils/PathRoute";
import CalculatedValue from "./calculatedValue/CalculatedValueForm";
Expand All @@ -37,6 +38,7 @@ import { CommonProperties } from "./menu/CommonProperties";
import ConfigMenuDisplay from "./formEntry/common/ConfigMenuDisplay";
import ProviderMenu from "./ProviderMenu/ProviderMenu";
import BarcodeConfiguration from "./barcodeConfiguration/BarcodeConfiguration";
import OrganizationManagament from "./OrganizationManagement/OrganizationManagement";

function Admin() {
const intl = useIntl();
Expand Down Expand Up @@ -84,6 +86,12 @@ function Admin() {
<SideNavLink renderIcon={QrCode} href="#barcodeConfiguration">
<FormattedMessage id="sidenav.label.admin.barcodeconfiguration" />
</SideNavLink>
<SideNavLink
renderIcon={ContainerSoftware}
href="#organizationManagement"
>
<FormattedMessage id="organization.main.title" />
</SideNavLink>
<SideNavMenu
title={intl.formatMessage({ id: "sidenav.label.admin.menu" })}
renderIcon={TableOfContents}
Expand Down Expand Up @@ -169,6 +177,9 @@ function Admin() {
<PathRoute path="#barcodeConfiguration">
<BarcodeConfiguration />
</PathRoute>
<PathRoute path="#organizationManagement">
<OrganizationManagament />
</PathRoute>
<PathRoute path="#globalMenuManagement">
<GlobalMenuManagement />
</PathRoute>
Expand Down
Loading
Loading