Skip to content

Commit

Permalink
Simplified form
Browse files Browse the repository at this point in the history
  • Loading branch information
shoxter committed Jul 9, 2016
1 parent f09a160 commit a9e236c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/components/paper-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const { Component, computed, on, observer } = Ember;

export default Component.extend(ParentMixin, {
tagName: '',
isValid: computed('childComponents.@each.isInvalid', function() {
return !this.get('childComponents').isAny('isInvalid');
isValid: computed.not('isInvalid'),
isInvalid: computed('childComponents.@each.isInvalid', function() {
return this.get('childComponents').isAny('isInvalid');
}),
isInvalid: computed.not('isValid'),
sendToParent: on('init', observer('isValid', function() {
if (!this.get('parentAction')) {
return;
Expand Down

0 comments on commit a9e236c

Please sign in to comment.