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

Handle Widget Modal Closing on Submit or Cancel #700

Merged

Conversation

jallentxbiomed
Copy link
Collaborator

@jallentxbiomed jallentxbiomed commented Mar 6, 2024

  • Added event listeners for Success and Cancel in Procedure Entry Widget
  • Added grid reload for successful Event Update
  • Added functionality for closing the modal on success, cancel, and error
  • Added Alerts for successful event updates, event update errors, server errors, and widget client errors

Related JIRA Issue:

Related PR:

@@ -145,23 +162,29 @@ export const EventListingGridPanelImpl: FC<EventListingProps> = memo((props: Eve
/>
)}
{showDialog === 'edit' && (
<ProcedureEntryModal onCancel={closeDialog}
<ProcedureEntryModal onCancel={handleCloseUpdateModal}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onCancel , we can directly closeDialog here Jay instead of calling the handleCloseUpdateModal and doing closeDialog in that handle function.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just as you did in line 174

@jallentxbiomed jallentxbiomed merged commit 9ea7aec into release23.11-SNAPSHOT Mar 21, 2024
3 checks passed
@jallentxbiomed jallentxbiomed deleted the 23.11_fb_handleModalCloseOnButtonClick branch March 21, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants