Open elsylambert opened 2 years ago
@kintsoogi does this have any overlap with what the merge dialog does when it informs users of unmerged resources?
@PhotoNomad0 says that you "add in the handler and change the prompt that gets shown" on the beforeunload event handler.
A modal should inform the user of what resources have unsaved changes: The dialog should read:
Some resources have unsaved changes that will be lost if you continue: TranslationAcademy TranslationWords
This is separated from #255
DoD:
When a user attempts to navigate away from a book or the page, the user should be informed as to what resources have been changed without saving.
Additional Context
User Workflow
Viewing Cards: User opens the main page and sees multiple resource cards.
Editing: User edits one or more cards and makes changes to the text.
Navigating Away: User tries to navigate away from the page or close the app.
Detecting Changes: System detects that some resource cards have unsaved changes.
Warning Dialog: A dialog appears, warning the user about the unsaved changes. This dialog lists the names of the resources corresponding to the changed cards.
Decision Point: