From f5e6f81590a1323f124eabc782318467b28544a5 Mon Sep 17 00:00:00 2001 From: Bhargav Kodali Date: Wed, 26 Feb 2025 12:25:32 -0700 Subject: [PATCH 1/3] add prompt before closing function --- src/FormBootstrap.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FormBootstrap.tsx b/src/FormBootstrap.tsx index 777c3ec..efb50a9 100644 --- a/src/FormBootstrap.tsx +++ b/src/FormBootstrap.tsx @@ -157,6 +157,7 @@ const FormBootstrap = ({ patientUuid, patient, encounterUuid: encounterUuid ?? '', + promptBeforeClosing:()=>undefined, closeWorkspace: () => undefined, handlePostResponse: (encounter) => { handlePostResponse(encounter); From fc1c23172d424f4698a749b1b8f2f4725fbc6450 Mon Sep 17 00:00:00 2001 From: Bhargav Kodali Date: Wed, 26 Feb 2025 12:56:01 -0700 Subject: [PATCH 2/3] add preventClickOutside for cancel modal --- src/CancelModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CancelModal.tsx b/src/CancelModal.tsx index f538c12..ff393eb 100644 --- a/src/CancelModal.tsx +++ b/src/CancelModal.tsx @@ -16,7 +16,7 @@ const CancelModal = ({ open, setOpen, context }) => { }; return ( - + {t('areYouSure', 'Are you sure?')} {t( From b87d2637770755df2c35995ca1ce0d2a86a8f1a9 Mon Sep 17 00:00:00 2001 From: Bhargav Kodali Date: Wed, 26 Feb 2025 12:58:19 -0700 Subject: [PATCH 3/3] remove cancel modal --- src/CancelModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CancelModal.tsx b/src/CancelModal.tsx index ff393eb..f538c12 100644 --- a/src/CancelModal.tsx +++ b/src/CancelModal.tsx @@ -16,7 +16,7 @@ const CancelModal = ({ open, setOpen, context }) => { }; return ( - + {t('areYouSure', 'Are you sure?')} {t(