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

Disabled view files and assign volunteer for discharged patients #9278

Closed
Changes from 8 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
3 changes: 2 additions & 1 deletion src/components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ export const PatientHome = (props: {
className="w-full bg-white font-semibold text-green-800 hover:bg-secondary-200"
id="upload-patient-files"
size="large"
disabled={!patientData.is_active}
nithish1018 marked this conversation as resolved.
Show resolved Hide resolved
onClick={() =>
navigate(
`/facility/${patientData?.facility}/patient/${id}/files`,
Expand All @@ -519,7 +520,7 @@ export const PatientHome = (props: {
<ButtonV2
id="assign-volunteer"
onClick={() => setOpenAssignVolunteerDialog(true)}
disabled={false}
disabled={!patientData.is_active}
authorizeFor={NonReadOnlyUsers}
className="w-full bg-white font-semibold text-green-800 hover:bg-secondary-200"
size="large"
Expand Down
Loading