This commit is contained in:
JanNiklas Grabowski
2023-10-26 19:28:35 +02:00
parent 4c61cf77aa
commit 2c2482c5b6

View File

@@ -75,18 +75,18 @@ struct AuthenticationLoginScreen: View {
qrLoginButton
}
if viewModel.viewState.homeserver.showLoginForm, viewModel.viewState.showSSOButtons, BWIBuildSettings.shared.isOIDCEnabled {
if viewModel.viewState.homeserver.showLoginForm && viewModel.viewState.showSSOButtons && BWIBuildSettings.shared.isOIDCEnabled {
Text(VectorL10n.or)
.foregroundColor(theme.colors.secondaryContent)
.padding(.top, 16)
}
if viewModel.viewState.showSSOButtons, BWIBuildSettings.shared.isOIDCEnabled {
if viewModel.viewState.showSSOButtons && BWIBuildSettings.shared.isOIDCEnabled {
ssoButtons
.padding(.top, 16)
}
if !viewModel.viewState.homeserver.showLoginForm, !viewModel.viewState.showSSOButtons {
if !viewModel.viewState.homeserver.showLoginForm && !viewModel.viewState.showSSOButtons {
fallbackButton
}
}