Skip to content
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

Merged
merged 4 commits into from
Mar 19, 2020
Merged

Modernize dummy app #2135

merged 4 commits into from
Mar 19, 2020

Conversation

marcoow
Copy link
Member

@marcoow marcoow commented Mar 18, 2020

This modernizes the dummy app by:

  • using async/await instead of dealing with promises
  • using closure actions instead of old actions or sendAction
  • using ember-data's package imports
  • using native inputs in the login form instead of the input helper

It also fixes handling of invalid credentials and other login errors in the <LoginForm> which is currently broken.

@marcoow marcoow marked this pull request as ready for review March 18, 2020 10:59
@@ -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}} />
Copy link
Collaborator

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?

Copy link
Member Author

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?

tests/dummy/app/components/login-form.js Outdated Show resolved Hide resolved
tests/dummy/app/services/session-account.js Outdated Show resolved Hide resolved
@marcoow marcoow merged commit 76745ef into master Mar 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the modernize-dummy-app branch March 19, 2020 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants