mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
Feature/7555 migration part 3
This commit is contained in:
committed by
SDE GitLab
parent
4515ab49e4
commit
585f4a852d
@@ -21,6 +21,10 @@ struct AuthenticationLoginScreen: View {
|
||||
/// This must be manually set back to `false` when the text field finishes editing.
|
||||
@State private var isPasswordFocused = false
|
||||
|
||||
// BWI #7555 migration part 3
|
||||
@State private var showMigrationView = BWIBuildSettings.shared.BuMXMigrationInfoLevel == 3
|
||||
// BWI #7555 END
|
||||
|
||||
// MARK: Public
|
||||
|
||||
@ObservedObject var viewModel: AuthenticationLoginViewModel.Context
|
||||
@@ -110,6 +114,13 @@ struct AuthenticationLoginScreen: View {
|
||||
.background(theme.colors.background.ignoresSafeArea())
|
||||
.alert(item: $viewModel.alertInfo) { $0.alert }
|
||||
.accentColor(theme.colors.accent)
|
||||
// BWI #7555 migration part 3
|
||||
.sheet(isPresented: $showMigrationView) {
|
||||
MigrationInfoView(username: "", getUserName: nil)
|
||||
.environmentObject(BWIThemeService.shared)
|
||||
.interactiveDismissDisabled(true)
|
||||
}
|
||||
// BWI #7555 END
|
||||
}
|
||||
|
||||
/// The header containing a Welcome Back title.
|
||||
@@ -163,6 +174,7 @@ struct AuthenticationLoginScreen: View {
|
||||
Button(action: submit) {
|
||||
Text(getCustomText(text: .submit))
|
||||
}
|
||||
.disabled(BWIBuildSettings.shared.BuMXMigrationInfoLevel > 2) // BWI #7555 migration part 3
|
||||
.buttonStyle(PrimaryActionButtonStyle())
|
||||
.disabled(!viewModel.viewState.canSubmit)
|
||||
.accessibilityIdentifier("nextButton")
|
||||
|
||||
Reference in New Issue
Block a user