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

fix: confirm dialog with interpretation view #1270

Closed
wants to merge 3 commits into from

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Sep 15, 2020

The changes here are for improving when the navigation confirm dialog is shown and what happens when clicking Yes or No.

Since there is actually no change loss when navigating in and out of an interpretation's view, the confirm dialog does not show, even if there are changes to the visualization.

ezgif com-optimize (2)

When answering No to the confirm dialog, the previous URL is loaded so that the state of the app is really what it was before.

ezgif com-optimize (3)

Since no change is actually lost when navigating in and out of an
interpretation's view, remove the confirm dialog.

Also, when answering No to the confirm dialog (meaning i don't want to
navigate to the new URL) restore the previous URL with history.goBack()
so that the app really is in the same state as before the confirm
dialog.
@edoardo
Copy link
Member Author

edoardo commented Sep 21, 2020

Integrated into #1273

@edoardo edoardo closed this Sep 21, 2020
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.

1 participant