-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 warning when leaving form with unsaved changes #4570
Conversation
fzaninotto
commented
Mar 23, 2020
•
edited
Loading
edited
- Display warning when leaving form with unsaved changes
- Redisplay form with unsaved changes on cancel
- Make it work when the user navigates away from the form using the back button
- Add tests
- Add documentation
2e187be
to
fbdd737
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
@@ -90,6 +90,8 @@ const frenchMessages: TranslationMessages = { | |||
not_found: | |||
"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.", | |||
yes: 'Oui', | |||
unsaved_changes: | |||
"Certains changements n'ont pas été enregistrés. Etes-vous sûr(e) de vouloir quitter cette page ?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Certains changements n'ont pas été enregistrés. Etes-vous sûr(e) de vouloir quitter cette page ?", | |
"Certains changements n'ont pas été enregistrés. Êtes-vous sûr·e de vouloir quitter cette page ?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have "sûr(e)" already in other translations, let's keep parentheses for this one.
Co-Authored-By: Gildas Garcia <1122076+djhi@users.noreply.github.com>
Co-Authored-By: Gildas Garcia <1122076+djhi@users.noreply.github.com>
Co-Authored-By: Gildas Garcia <1122076+djhi@users.noreply.github.com>