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

Add confirmation modal when navigating away from unsaved source or destination settings #12186

Merged
merged 1 commit into from
Apr 21, 2022

Conversation

edmundito
Copy link
Contributor

What

Add a "discard changes" confirmation modal when navigating away from the Source and Destination settings pages

How

This uses the form tracking service to monitor changes to the form on the service pages and display the modal when the form is dirty.

Additionally, it adds routes to the settings pages instead of being based on a React state.

Recommended reading order

Top to bottom

@edmundito edmundito requested a review from a team as a code owner April 20, 2022 15:25
@github-actions github-actions bot added area/frontend area/platform issues related to the platform labels Apr 20, 2022
…ation settings pages

Add routes to destinations and source settings pages
Ensure ServiceForm is reset with updated values on successful save
Copy link
Contributor

@teallarson teallarson left a comment

Choose a reason for hiding this comment

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

This is an extension of some of the work done in #11831 correct? Seems helpful to link the two or link back to the issue.

Looks good to me, cleans up some things, and works locally. 👍

@edmundito edmundito merged commit 56af26c into master Apr 21, 2022
@edmundito edmundito deleted the src-dest-settings-confirm branch April 21, 2022 18:11
suhomud pushed a commit that referenced this pull request May 23, 2022
…ation settings pages (#12186)

Add routes to destinations and source settings pages
Ensure ServiceForm is reset with updated values on successful save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants