-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show a warning dialog when attempting to close data collection screen (…
…#3024) * Add strings for new warning dialog * Refactor ConfirmationDialog composable for better usage * Add `ConfirmationDialog` preview. * Update `ConfirmationDialog` to track dialog state internally. * Refactor `showConfirmationDialog` to use new `ConfirmationDialog` implementation. * Remove unnecessary mutable state. * Update string resource names to match their purpose. * Refactor: Display a warning dialog when exiting data collection - Replaced the default navigation action with a custom warning dialog. - Added a new function `showConfirmationDialog` to display the exit warning dialog. - Modified `onBack` to trigger the warning dialog when appropriate. - Moved clearDraft() call to onConfirm action. * Update unit test * revert changes to button text var * Add string translations * Small corrections of Spanish translations * Small correction of French translation --------- Co-authored-by: Jonas Spekker <[email protected]>
- Loading branch information
1 parent
1f021ac
commit 00d18fa
Showing
9 changed files
with
128 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters