{"action":"created","comment":{"url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/comments/69729086","id":69729086,"diff_hunk":"@@ -0,0 +1,46 @@\n+import Ember from 'ember';\n+const { Component } = Ember;\n+\n+export default Component.extend({\n+  tagName: '',\n+  classNames: [],\n+  attributeBindings: ['style'],\n+  style: 'width:100%',\n+  numberOfInvalids: 0,\n+  isValid: Ember.computed('numberOfInvalids', function() {\n+    return this.get('numberOfInvalids') === 0;\n+  }),\n+  isInvalid: Ember.computed('isValid', function() {","path":"addon/components/paper-form.js","position":13,"original_position":13,"commit_id":"bc3c3dbc4a85e751977b7b88e3c9f5583dc90697","original_commit_id":"bc3c3dbc4a85e751977b7b88e3c9f5583dc90697","user":{"login":"miguelcobain","id":631691,"avatar_url":"https://avatars.githubusercontent.com/u/631691?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelcobain","html_url":"https://github.com/miguelcobain","followers_url":"https://api.github.com/users/miguelcobain/followers","following_url":"https://api.github.com/users/miguelcobain/following{/other_user}","gists_url":"https://api.github.com/users/miguelcobain/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelcobain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelcobain/subscriptions","organizations_url":"https://api.github.com/users/miguelcobain/orgs","repos_url":"https://api.github.com/users/miguelcobain/repos","events_url":"https://api.github.com/users/miguelcobain/events{/privacy}","received_events_url":"https://api.github.com/users/miguelcobain/received_events","type":"User","site_admin":false},"body":"destructure `computed`","created_at":"2016-07-06T13:28:00Z","updated_at":"2016-07-06T13:28:00Z","html_url":"https://github.com/miguelcobain/ember-paper/pull/408#discussion_r69729086","pull_request_url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408","_links":{"self":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/comments/69729086"},"html":{"href":"https://github.com/miguelcobain/ember-paper/pull/408#discussion_r69729086"},"pull_request":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408"}}},"pull_request":{"url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408","id":75733599,"html_url":"https://github.com/miguelcobain/ember-paper/pull/408","diff_url":"https://github.com/miguelcobain/ember-paper/pull/408.diff","patch_url":"https://github.com/miguelcobain/ember-paper/pull/408.patch","issue_url":"https://api.github.com/repos/miguelcobain/ember-paper/issues/408","number":408,"state":"open","locked":false,"title":"Finished Paper Form Component","user":{"login":"shoxter","id":19478126,"avatar_url":"https://avatars.githubusercontent.com/u/19478126?v=3","gravatar_id":"","url":"https://api.github.com/users/shoxter","html_url":"https://github.com/shoxter","followers_url":"https://api.github.com/users/shoxter/followers","following_url":"https://api.github.com/users/shoxter/following{/other_user}","gists_url":"https://api.github.com/users/shoxter/gists{/gist_id}","starred_url":"https://api.github.com/users/shoxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoxter/subscriptions","organizations_url":"https://api.github.com/users/shoxter/orgs","repos_url":"https://api.github.com/users/shoxter/repos","events_url":"https://api.github.com/users/shoxter/events{/privacy}","received_events_url":"https://api.github.com/users/shoxter/received_events","type":"User","site_admin":false},"body":"Usage like this:\r\n\r\n```\r\n{{#paper-form parentSubmit=(action 'useless') as |form|}}\r\n\r\n         {{form.input value=foo onChange=(action (mut foo)) label=\"Foo\" required=true}}\r\n         {{form.input value=bar onChange=(action (mut bar)) label=\"Bar\"}}\r\n\r\n         {{#paper-button primary=true raised=true onClick=form.submit disabled=form.isInvalid}}Button{{/paper-button}}\r\n\r\n{{/paper-form}}\r\n```\r\n\r\n\r\nDifferent Options: \r\n\r\n- **form.input:** Paper inputs inside of the form.\r\n- **parentSubmit:**  The action in the parent component/controller to execute (clear fields, create/save records, etc) with regards to the form prior to the form component resetting the isTouched property on all of the inputs.\r\n- **form.submit:** This should be the onClick method for the intended submit button for the form.\r\n- **form.isInvalid:** This is the property that the form changes as the form's inputs change their validity state. When the inputs are invalid, this will be true and should disabled the form's intended submit button.\r\n\r\nThe form looks at all the form.inputs with input constraints for invalidity.\r\n\r\nPlease post any questions. We can create a page on the dummy app to cover the documentation for this component once we cover any questions that should be included.","created_at":"2016-06-29T22:37:34Z","updated_at":"2016-07-06T13:28:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2de4ca268712c00e26f436e7f1c8efbbaf881e71","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408/commits","review_comments_url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408/comments","review_comment_url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miguelcobain/ember-paper/issues/408/comments","statuses_url":"https://api.github.com/repos/miguelcobain/ember-paper/statuses/bc3c3dbc4a85e751977b7b88e3c9f5583dc90697","head":{"label":"shoxter:paper-form-component","ref":"paper-form-component","sha":"bc3c3dbc4a85e751977b7b88e3c9f5583dc90697","user":{"login":"shoxter","id":19478126,"avatar_url":"https://avatars.githubusercontent.com/u/19478126?v=3","gravatar_id":"","url":"https://api.github.com/users/shoxter","html_url":"https://github.com/shoxter","followers_url":"https://api.github.com/users/shoxter/followers","following_url":"https://api.github.com/users/shoxter/following{/other_user}","gists_url":"https://api.github.com/users/shoxter/gists{/gist_id}","starred_url":"https://api.github.com/users/shoxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoxter/subscriptions","organizations_url":"https://api.github.com/users/shoxter/orgs","repos_url":"https://api.github.com/users/shoxter/repos","events_url":"https://api.github.com/users/shoxter/events{/privacy}","received_events_url":"https://api.github.com/users/shoxter/received_events","type":"User","site_admin":false},"repo":{"id":59328443,"name":"ember-paper","full_name":"shoxter/ember-paper","owner":{"login":"shoxter","id":19478126,"avatar_url":"https://avatars.githubusercontent.com/u/19478126?v=3","gravatar_id":"","url":"https://api.github.com/users/shoxter","html_url":"https://github.com/shoxter","followers_url":"https://api.github.com/users/shoxter/followers","following_url":"https://api.github.com/users/shoxter/following{/other_user}","gists_url":"https://api.github.com/users/shoxter/gists{/gist_id}","starred_url":"https://api.github.com/users/shoxter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoxter/subscriptions","organizations_url":"https://api.github.com/users/shoxter/orgs","repos_url":"https://api.github.com/users/shoxter/repos","events_url":"https://api.github.com/users/shoxter/events{/privacy}","received_events_url":"https://api.github.com/users/shoxter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shoxter/ember-paper","description":"The Ember approach to Material Design.","fork":true,"url":"https://api.github.com/repos/shoxter/ember-paper","forks_url":"https://api.github.com/repos/shoxter/ember-paper/forks","keys_url":"https://api.github.com/repos/shoxter/ember-paper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoxter/ember-paper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoxter/ember-paper/teams","hooks_url":"https://api.github.com/repos/shoxter/ember-paper/hooks","issue_events_url":"https://api.github.com/repos/shoxter/ember-paper/issues/events{/number}","events_url":"https://api.github.com/repos/shoxter/ember-paper/events","assignees_url":"https://api.github.com/repos/shoxter/ember-paper/assignees{/user}","branches_url":"https://api.github.com/repos/shoxter/ember-paper/branches{/branch}","tags_url":"https://api.github.com/repos/shoxter/ember-paper/tags","blobs_url":"https://api.github.com/repos/shoxter/ember-paper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoxter/ember-paper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoxter/ember-paper/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoxter/ember-paper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoxter/ember-paper/statuses/{sha}","languages_url":"https://api.github.com/repos/shoxter/ember-paper/languages","stargazers_url":"https://api.github.com/repos/shoxter/ember-paper/stargazers","contributors_url":"https://api.github.com/repos/shoxter/ember-paper/contributors","subscribers_url":"https://api.github.com/repos/shoxter/ember-paper/subscribers","subscription_url":"https://api.github.com/repos/shoxter/ember-paper/subscription","commits_url":"https://api.github.com/repos/shoxter/ember-paper/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoxter/ember-paper/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoxter/ember-paper/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoxter/ember-paper/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoxter/ember-paper/contents/{+path}","compare_url":"https://api.github.com/repos/shoxter/ember-paper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoxter/ember-paper/merges","archive_url":"https://api.github.com/repos/shoxter/ember-paper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoxter/ember-paper/downloads","issues_url":"https://api.github.com/repos/shoxter/ember-paper/issues{/number}","pulls_url":"https://api.github.com/repos/shoxter/ember-paper/pulls{/number}","milestones_url":"https://api.github.com/repos/shoxter/ember-paper/milestones{/number}","notifications_url":"https://api.github.com/repos/shoxter/ember-paper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoxter/ember-paper/labels{/name}","releases_url":"https://api.github.com/repos/shoxter/ember-paper/releases{/id}","deployments_url":"https://api.github.com/repos/shoxter/ember-paper/deployments","created_at":"2016-05-20T21:50:09Z","updated_at":"2016-05-20T21:50:10Z","pushed_at":"2016-07-06T13:24:55Z","git_url":"git://github.com/shoxter/ember-paper.git","ssh_url":"git@github.com:shoxter/ember-paper.git","clone_url":"https://github.com/shoxter/ember-paper.git","svn_url":"https://github.com/shoxter/ember-paper","homepage":"http://miguelcobain.github.io/ember-paper","size":4377,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"miguelcobain:master","ref":"master","sha":"1bea72bafb81e86fb776ace25e46d18c2a2be4f4","user":{"login":"miguelcobain","id":631691,"avatar_url":"https://avatars.githubusercontent.com/u/631691?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelcobain","html_url":"https://github.com/miguelcobain","followers_url":"https://api.github.com/users/miguelcobain/followers","following_url":"https://api.github.com/users/miguelcobain/following{/other_user}","gists_url":"https://api.github.com/users/miguelcobain/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelcobain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelcobain/subscriptions","organizations_url":"https://api.github.com/users/miguelcobain/orgs","repos_url":"https://api.github.com/users/miguelcobain/repos","events_url":"https://api.github.com/users/miguelcobain/events{/privacy}","received_events_url":"https://api.github.com/users/miguelcobain/received_events","type":"User","site_admin":false},"repo":{"id":25473816,"name":"ember-paper","full_name":"miguelcobain/ember-paper","owner":{"login":"miguelcobain","id":631691,"avatar_url":"https://avatars.githubusercontent.com/u/631691?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelcobain","html_url":"https://github.com/miguelcobain","followers_url":"https://api.github.com/users/miguelcobain/followers","following_url":"https://api.github.com/users/miguelcobain/following{/other_user}","gists_url":"https://api.github.com/users/miguelcobain/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelcobain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelcobain/subscriptions","organizations_url":"https://api.github.com/users/miguelcobain/orgs","repos_url":"https://api.github.com/users/miguelcobain/repos","events_url":"https://api.github.com/users/miguelcobain/events{/privacy}","received_events_url":"https://api.github.com/users/miguelcobain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miguelcobain/ember-paper","description":"The Ember approach to Material Design.","fork":false,"url":"https://api.github.com/repos/miguelcobain/ember-paper","forks_url":"https://api.github.com/repos/miguelcobain/ember-paper/forks","keys_url":"https://api.github.com/repos/miguelcobain/ember-paper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miguelcobain/ember-paper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miguelcobain/ember-paper/teams","hooks_url":"https://api.github.com/repos/miguelcobain/ember-paper/hooks","issue_events_url":"https://api.github.com/repos/miguelcobain/ember-paper/issues/events{/number}","events_url":"https://api.github.com/repos/miguelcobain/ember-paper/events","assignees_url":"https://api.github.com/repos/miguelcobain/ember-paper/assignees{/user}","branches_url":"https://api.github.com/repos/miguelcobain/ember-paper/branches{/branch}","tags_url":"https://api.github.com/repos/miguelcobain/ember-paper/tags","blobs_url":"https://api.github.com/repos/miguelcobain/ember-paper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miguelcobain/ember-paper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miguelcobain/ember-paper/git/refs{/sha}","trees_url":"https://api.github.com/repos/miguelcobain/ember-paper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miguelcobain/ember-paper/statuses/{sha}","languages_url":"https://api.github.com/repos/miguelcobain/ember-paper/languages","stargazers_url":"https://api.github.com/repos/miguelcobain/ember-paper/stargazers","contributors_url":"https://api.github.com/repos/miguelcobain/ember-paper/contributors","subscribers_url":"https://api.github.com/repos/miguelcobain/ember-paper/subscribers","subscription_url":"https://api.github.com/repos/miguelcobain/ember-paper/subscription","commits_url":"https://api.github.com/repos/miguelcobain/ember-paper/commits{/sha}","git_commits_url":"https://api.github.com/repos/miguelcobain/ember-paper/git/commits{/sha}","comments_url":"https://api.github.com/repos/miguelcobain/ember-paper/comments{/number}","issue_comment_url":"https://api.github.com/repos/miguelcobain/ember-paper/issues/comments{/number}","contents_url":"https://api.github.com/repos/miguelcobain/ember-paper/contents/{+path}","compare_url":"https://api.github.com/repos/miguelcobain/ember-paper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miguelcobain/ember-paper/merges","archive_url":"https://api.github.com/repos/miguelcobain/ember-paper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miguelcobain/ember-paper/downloads","issues_url":"https://api.github.com/repos/miguelcobain/ember-paper/issues{/number}","pulls_url":"https://api.github.com/repos/miguelcobain/ember-paper/pulls{/number}","milestones_url":"https://api.github.com/repos/miguelcobain/ember-paper/milestones{/number}","notifications_url":"https://api.github.com/repos/miguelcobain/ember-paper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miguelcobain/ember-paper/labels{/name}","releases_url":"https://api.github.com/repos/miguelcobain/ember-paper/releases{/id}","deployments_url":"https://api.github.com/repos/miguelcobain/ember-paper/deployments","created_at":"2014-10-20T15:50:07Z","updated_at":"2016-07-06T02:57:46Z","pushed_at":"2016-07-06T13:24:56Z","git_url":"git://github.com/miguelcobain/ember-paper.git","ssh_url":"git@github.com:miguelcobain/ember-paper.git","clone_url":"https://github.com/miguelcobain/ember-paper.git","svn_url":"https://github.com/miguelcobain/ember-paper","homepage":"http://miguelcobain.github.io/ember-paper","size":7115,"stargazers_count":525,"watchers_count":525,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":136,"mirror_url":null,"open_issues_count":58,"forks":136,"open_issues":58,"watchers":525,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408"},"html":{"href":"https://github.com/miguelcobain/ember-paper/pull/408"},"issue":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/issues/408"},"comments":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/issues/408/comments"},"review_comments":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408/comments"},"review_comment":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/pulls/408/commits"},"statuses":{"href":"https://api.github.com/repos/miguelcobain/ember-paper/statuses/bc3c3dbc4a85e751977b7b88e3c9f5583dc90697"}}}}
{"actor":{"display_login":"miguelcobain"}}