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

Losing data when a user click the back button in the browser #743

Closed
Sander3003 opened this issue May 13, 2022 · 0 comments · Fixed by #800
Closed

Losing data when a user click the back button in the browser #743

Sander3003 opened this issue May 13, 2022 · 0 comments · Fixed by #800
Assignees
Labels

Comments

@Sander3003
Copy link
Member

Sander3003 commented May 13, 2022

Is your feature request related to a problem? Please describe.
As an engineer
I want to be informed to save the data first before I click the "back" button in modern browers
So I do not lose my changes

Describe the solution you'd like
Show a warning when a user want to back in the browser.

Requirements
Only show the warning if a document is open in OpenSCD

Suggestions for a specific user interaction
A pop-up window should show up:
Are you sure? Your work will be lost

Additional information
Example:
https://stackoverflow.com/questions/38306510/alert-on-browser-back-button-click-or-page-refresh

@JakobVogelsang JakobVogelsang added this to the Sprint 2022-06-13 milestone May 30, 2022
@ca-d ca-d changed the title Losing data when a user click the back button in the brower Losing data when a user click the back button in the browser May 30, 2022
@ca-d ca-d closed this as completed in #800 Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment