Skip to content

Commit

Permalink
feat(OnboardingView): Create Account button loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Sep 5, 2023
1 parent bdded35 commit b1dfdb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Mail/Views/Onboarding/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ struct OnboardingView: View {
isPresentingCreateAccount = true
}
.mailButtonStyle(.link)
.disabled(loginHandler.isLoading)
} else {
MailButton(icon: MailResourcesAsset.fullArrowRight) {
withAnimation {
Expand Down
2 changes: 1 addition & 1 deletion Mail/Views/Switch User/CreateAccountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct CreateAccountView: View {
MailButton(label: MailResourcesStrings.Localizable.buttonStart) {
@InjectService var matomo: MatomoUtils
matomo.track(eventWithCategory: .account, name: "openCreationWebview")
isPresentingCreateAccount.toggle()
isPresentingCreateAccount = true
}
.mailButtonFullWidth(true)
.mailButtonLoading(loginHandler.isLoading)
Expand Down

0 comments on commit b1dfdb0

Please sign in to comment.