Skip to content

Commit

Permalink
Merge pull request #19 from rox163/master
Browse files Browse the repository at this point in the history
fix validation function
  • Loading branch information
sandersky committed May 3, 2016
2 parents 990af2b + aa79f36 commit ab76b66
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addon/components/frost-login/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default Component.extend({
},

onValidationHandler (e) {
this.set('valid', e.valid)
this.set('valid', e.errors.length === 0)
},

submitLogin: function () {
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
"engines": {
"node": ">= 5.0.0"
},
"author": "",
"author": "Roxanne Panthaky (https://github.com/rox163)",
"contributors": [
"Gosia Hyndman (https://github.com/vesper2000)",
"Eric White (https://github.com/EWhite613)",
"Matthew Dahl (https://github.com/sandersky)"
],
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.2.0",
Expand All @@ -44,7 +49,7 @@
"ember-resolver": "^2.0.3",
"ember-truth-helpers": "^1.2.0",
"ember-try": "^0.2.0",
"eslint": "2.8.0",
"eslint": "2.9.0",
"eslint-config-frost-standard": "^2.0.0",
"frost-guide-custom-routing": "0.0.4",
"loader.js": "^4.0.0"
Expand All @@ -63,4 +68,4 @@
"ember-addon": {
"configPath": "tests/dummy/config"
}
}
}
6 changes: 5 additions & 1 deletion tests/dummy/app/pods/custom-login/template.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{frost-login onSubmit='submitLogin' }}
{{frost-login
brandingStrip='app/company-strip'
logo='app/company'
onSubmit='submitLogin'
}}
{{!-- {{#if section.form}}
{{frost-bunsen-form
model=loginFormModel
Expand Down

0 comments on commit ab76b66

Please sign in to comment.