mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
Add going back functionality to the email verification screen
This commit is contained in:
+6
@@ -46,12 +46,18 @@ class AuthenticationVerifyEmailViewModel: AuthenticationVerifyEmailViewModelType
|
||||
Task { await callback?(.resend) }
|
||||
case .cancel:
|
||||
Task { await callback?(.cancel) }
|
||||
case .goBack:
|
||||
Task { await callback?(.goBack) }
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor func updateForSentEmail() {
|
||||
state.hasSentEmail = true
|
||||
}
|
||||
|
||||
@MainActor func goBackToEnterEmailForm() {
|
||||
state.hasSentEmail = false
|
||||
}
|
||||
|
||||
@MainActor func displayError(_ type: AuthenticationVerifyEmailErrorType) {
|
||||
switch type {
|
||||
|
||||
Reference in New Issue
Block a user