mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
MESSENGER-3662 Infodialog
This commit is contained in:
@@ -57,9 +57,17 @@ class AuthenticationServerSelectionViewModel: AuthenticationServerSelectionViewM
|
||||
}
|
||||
case .openURLAlert:
|
||||
state.bindings.alertInfo = AlertInfo(id: .openURLAlert, title: VectorL10n.roomMessageUnableOpenLinkErrorMessage)
|
||||
case .openInvalidServerInfo: break
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@MainActor func displayInfo(_ message: String, buttonTitle: String, completion: (()->Void)? ) {
|
||||
state.bindings.alertInfo = AlertInfo(id: .openInvalidServerInfo,
|
||||
title: message,
|
||||
primaryButton: (buttonTitle, completion))
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
/// Clear any errors shown in the text field footer.
|
||||
|
||||
Reference in New Issue
Block a user