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 auto-save when before unload is triggered #19

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

KennethWussmann
Copy link
Owner

I think this way of partially auto-saving and partially not is still a good solution, because otherwise images may get labelled as done and even hide from the view, just because the user added a first caption part. This explicit saving while the user is working allows for more control.
Thats why we had the before unload listener already to warn users when they have unsaved work. I now added that after the browser pop up, work is still auto-saved. It's best effort and only works when the user decides to cancel on the browser pop up and stay on the page.

@KennethWussmann KennethWussmann enabled auto-merge (squash) November 9, 2024 11:51
@KennethWussmann KennethWussmann merged commit 5881c04 into main Nov 9, 2024
1 check passed
@KennethWussmann KennethWussmann deleted the task/auto-save-on-before-unload branch November 9, 2024 11:51
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