Fix login flow (#4813)
* Also clear the data, to let the next screen be able to go back * Disable the change account provider button when the form is loading the data to prevent double navigation * Improve OnboardingViewTest, ensure that no Event are emitted. * OnboardingViewTest: add tests to cover the change.
This commit is contained in:
parent
efdc10e60a
commit
4f8133649c
3 changed files with 69 additions and 3 deletions
|
|
@ -81,6 +81,8 @@ fun LoginModeView(
|
|||
LoginMode.PasswordLogin -> onNeedLoginPassword()
|
||||
is LoginMode.AccountCreation -> onCreateAccountContinue(loginModeData.url)
|
||||
}
|
||||
// Also clear the data, to let the next screen be able to go back
|
||||
onClearError()
|
||||
}
|
||||
AsyncData.Uninitialized -> Unit
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ fun ConfirmAccountProviderView(
|
|||
TextButton(
|
||||
text = stringResource(id = R.string.screen_account_provider_change),
|
||||
onClick = onChange,
|
||||
enabled = true,
|
||||
enabled = !isLoading,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag(TestTags.loginChangeServer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue