-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernize dummy app #2135
Modernize dummy app #2135
Conversation
@@ -7,14 +7,14 @@ | |||
<form {{action 'authenticateWithOAuth2' on='submit'}}> | |||
<div class="form-group"> | |||
<label for="identification">Login</label> | |||
{{input value=identification placeholder='Enter Login' class='form-control'}} | |||
<input type="text" placeholder="Enter Login" class="form-control" onchange={{action 'updateIdentification'}} value={{this.identification}} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, what's the reason for this change? why not keep using the <Input>
component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find using native inputs easier to follow and more explicit. What would be an advantage of the <Input>
component?
29dc311
to
0302dba
Compare
0302dba
to
810baee
Compare
810baee
to
b7d45a0
Compare
This modernizes the dummy app by:
async
/await
instead of dealing with promisessendAction
input
helperIt also fixes handling of invalid credentials and other login errors in the
<LoginForm>
which is currently broken.