mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
Add going back functionality to the email verification screen
This commit is contained in:
+7
-2
@@ -137,9 +137,14 @@ struct AuthenticationVerifyEmailScreen: View {
|
||||
/// A simple toolbar with a cancel button.
|
||||
var toolbar: some ToolbarContent {
|
||||
ToolbarItem(placement: .cancellationAction) {
|
||||
Button(VectorL10n.cancel) {
|
||||
viewModel.send(viewAction: .cancel)
|
||||
Button(viewModel.viewState.hasSentEmail ? VectorL10n.back : VectorL10n.cancel) {
|
||||
if viewModel.viewState.hasSentEmail {
|
||||
viewModel.send(viewAction: .goBack)
|
||||
} else {
|
||||
viewModel.send(viewAction: .cancel)
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("cancelButton")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user