MESSENGER-3662 Infodialog

This commit is contained in:
Frank Rotermund
2022-12-01 11:11:35 +00:00
parent a2fcf22f0d
commit 068eaba5b4
7 changed files with 31 additions and 1 deletions

View File

@@ -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.