Skip to content

Commit

Permalink
Adding defualt routes for Laboratory and Pharmacy roles (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daphne210 authored May 2, 2024
1 parent 8ef598f commit 2ca3de5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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

0 comments on commit 2ca3de5

Please sign in to comment.