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

Warn users on browser refresh if unsaved changes #470

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Nov 7, 2024

Description

Use browser-native popups to warn users of unsaved changes when refreshing. Adds a basic hook to add/remove event listeners when the component is unloaded (triggered on refresh), and if saveDisabled is false, indicating there are unsaved changes.

Issues Resolved

Makes progress on #469

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
@saimedhi saimedhi merged commit 8c20543 into opensearch-project:main Nov 7, 2024
11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 7, 2024
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
(cherry picked from commit 8c20543)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@ohltyler ohltyler deleted the redirect branch November 7, 2024 23:20
ohltyler pushed a commit that referenced this pull request Nov 7, 2024
(cherry picked from commit 8c20543)

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants