Skip to content

Reset UI if the login fails. #9

@OwenLaRosa

Description

@OwenLaRosa

In lesson 7, we added an activity indicator to the login view. The view appears and starts spinning when the login process begins, and stops spinning and disappears when the login is complete.

But what happens if the login doesn't complete? Try an incorrect username/password or modifying the API key. After dismissing the alert, the spinner keeps spinning. You'll also notice that the text fields can't be edited, nor can you press any of the buttons.

We already know where to add code for when the login fails. To fix this issue, try calling setLoggingIn() in the appropriate places to ensure UI changes appropriately to match the "logging in" state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    moviemanagerchallengeTask for "Improve the Movie Manager" Challenge

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions