Skip to content

Commit

Permalink
Add disable state for prescriptions actions
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Dec 1, 2023
1 parent 88ed911 commit fffb5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ModalMedicationRequestCancel = (props: ModalMedicationRequestCancel
<ModalTrigger
title={t`Cancel Medication Request`}
trigger={
<Button type="primary">
<Button type="primary" disabled={props.medicationRequest.status !== 'active'}>
<span>
<Trans>Cancel</Trans>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ModalMedicationRequestConfirm = (props: ModalMedicationRequestConfi
<ModalTrigger
title={t`Confirm Medication Request`}
trigger={
<Button type="primary">
<Button type="primary" disabled={props.medicationRequest.status !== 'active'}>
<span>
<Trans>Confirm</Trans>
</span>
Expand Down

0 comments on commit fffb5d7

Please sign in to comment.