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

Adding default routes for Organizational: Laboratory and Organizational: Pharmacy roles #23

Merged
merged 1 commit into from
May 2, 2024
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "src/index.ts",
"source": true,
"scripts": {
"start": "openmrs develop --backend http://194.163.171.253:8282",
"start": "openmrs develop",
"serve": "webpack serve --mode=development",
"debug": "npm run serve",
"test": "cross-env TZ=UTC jest --config jest.config.js --verbose false --passWithNoTests",
Expand Down Expand Up @@ -102,4 +102,4 @@
"webpack-cli": "^5.1.4"
},
"packageManager": "[email protected]"
}
}
8 changes: 8 additions & 0 deletions src/login/login.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ const Login: React.FC<LoginReferrer> = () => {
navigate({
to: `${window.getOpenmrsSpaBase()}home/reception-patient-queues`,
});
} else if (roleName === "Organizational: Laboratory") {
navigate({
to: `${window.getOpenmrsSpaBase()}home/laboratory`,
});
} else if (roleName === "Organizational:Pharmacy") {
navigate({
to: `${window.getOpenmrsSpaBase()}dispensing`,
});
} else {
navigate({ to: `${window.getOpenmrsSpaBase()}home` });
}
Expand Down
Loading