mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
MESSENGER-3895 Fix presentation of two alerts
This commit is contained in:
+15
-20
@@ -50,37 +50,32 @@ struct AuthenticationServerSelectionScreen: View {
|
||||
|
||||
if BWIBuildSettings.shared.scanServerQRCode {
|
||||
scanButton
|
||||
.alert(isPresented: $showAlertForMissingCameraAuthorization) {
|
||||
Alert(
|
||||
title: Text(BWIL10n.authenticationServerSelectionQrMissingAuthorizationTitle),
|
||||
message: Text(BWIL10n.authenticationServerSelectionQrMissingAuthorizationMessage),
|
||||
primaryButton: .default(Text(VectorL10n.settingsTitle), action: openSettingsApp),
|
||||
secondaryButton: .cancel())
|
||||
}
|
||||
}
|
||||
|
||||
serverForm
|
||||
.alert(item: $viewModel.alertInfo) { $0.alert }
|
||||
.alert(isPresented: $showAlertForInvalidServer) {
|
||||
Alert(
|
||||
title: Text(BWIL10n.authenticationServerSelectionServerDeniedTitle),
|
||||
message: Text(BWIL10n.authenticationServerSelectionServerDeniedMessage),
|
||||
dismissButton: .default(Text(VectorL10n.ok)))
|
||||
}
|
||||
}
|
||||
.readableFrame()
|
||||
.padding(.horizontal, 16)
|
||||
}
|
||||
.alert(isPresented: $showAlertForInvalidServer) {
|
||||
Alert(
|
||||
title: Text(BWIL10n.authenticationServerSelectionServerDeniedTitle),
|
||||
message: Text(BWIL10n.authenticationServerSelectionServerDeniedMessage),
|
||||
dismissButton: .default(Text(VectorL10n.ok)))
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.background(theme.colors.background.ignoresSafeArea())
|
||||
.toolbar { toolbar }
|
||||
.alert(item: $viewModel.alertInfo) { $0.alert }
|
||||
.alert(isPresented: $showAlertForMissingCameraAuthorization) {
|
||||
Alert(
|
||||
title: Text(BWIL10n.authenticationServerSelectionQrMissingAuthorizationTitle),
|
||||
message: Text(BWIL10n.authenticationServerSelectionQrMissingAuthorizationMessage),
|
||||
primaryButton: .default(Text(VectorL10n.settingsTitle), action: openSettingsApp),
|
||||
secondaryButton: .cancel())
|
||||
}
|
||||
.alert(isPresented: $showAlertForInvalidServer) {
|
||||
Alert(
|
||||
title: Text(BWIL10n.authenticationServerSelectionServerDeniedTitle),
|
||||
message: Text(BWIL10n.authenticationServerSelectionServerDeniedMessage),
|
||||
dismissButton: .default(Text(VectorL10n.ok)))
|
||||
}
|
||||
.accentColor(theme.colors.accent)
|
||||
.sheet(isPresented: $presentQRCodeScanner) {
|
||||
AuthenticationServerSelectionQRCodeScanner(qrCode: $qrCode)
|
||||
|
||||
Reference in New Issue
Block a user