{"action":"created","comment":{"url":"https://api.github.com/repos/Jenuma/contact-list/pulls/comments/81159533","pull_request_review_id":2159822,"id":81159533,"diff_hunk":"@@ -1,35 +1,48 @@\n <div id=\"contact-index\" class=\"container\" ng-controller=\"ContactController as contactCtrl\">\n     <h1>Contact List</h1>\n-    <table class=\"table\">\n-        <thead>\n-            <tr>\n-                <th>Name</th>\n-                <th>Email</th>\n-                <th>Number</th>\n-                <th>Action</th>\n-            </tr>\n-        </thead>\n-        <tbody>\n-            <tr>\n-                <td><input class=\"form-control\" ng-model=\"contactCtrl.newContact.name\"/></td>\n-                <td><input class=\"form-control\" ng-model=\"contactCtrl.newContact.email\"/></td>\n-                <td><input class=\"form-control\" ng-model=\"contactCtrl.newContact.number\"/></td>\n-                <td>\n-                    <button class=\"btn btn-success\" ng-click=\"contactCtrl.addContact()\">\n-                        <span class=\"fa fa-plus\"></span>\n-                    </button>\n-                </td>\n-            </tr>\n-            <tr class=\"contact-row\" ng-repeat=\"contact in contactCtrl.contacts\">\n-                <td>{{contact.name}}</td>\n-                <td>{{contact.email}}</td>\n-                <td>{{contact.number}}</td>\n-                <td>\n-                    <button class=\"btn btn-danger\" ng-click=\"contactCtrl.deleteContact(contact.id)\">\n-                        <span class=\"fa fa-times\"></span>\n-                    </button>\n-                </td>\n-            </tr>\n-        </tbody>\n-    </table>\n+\n+        <table class=\"table\">\n+            <thead>\n+                <tr>\n+                    <th>Name</th>\n+                    <th>Email</th>\n+                    <th>Number</th>\n+                    <th>Action</th>\n+                    <th></th>\n+                </tr>\n+            </thead>\n+            <tbody>\n+                <tr>\n+                    <td><input class=\"form-control\" ng-model=\"contactCtrl.formData.name\"/></td>\n+                    <td><input class=\"form-control\" ng-model=\"contactCtrl.formData.email\"/></td>\n+                    <td><input class=\"form-control\" ng-model=\"contactCtrl.formData.number\"/></td>\n+                    <td>\n+                        <button class=\"btn btn-success\" ng-click=\"contactCtrl.updateContact()\">\n+                            <span class=\"fa fa-plus\"></span>\n+                        </button>\n+                    </td>\n+                    <td ng-show=\"contactCtrl.isEditing\">\n+                        <button class=\"btn btn-danger\" ng-click=\"contactCtrl.stopEditing()\">\n+                            <span class=\"fa fa-times\"></span>\n+                        </button>\n+                    </td>\n+                </tr>\n+                <tr class=\"contact-row\" ng-repeat=\"contact in contactCtrl.contacts\">\n+                    <td>{{contact.name}}</td>\n+                    <td>{{contact.email}}</td>\n+                    <td>{{contact.number}}</td>\n+                    <td>\n+                        <button class=\"btn btn-danger\" ng-click=\"contactCtrl.deleteContact(contact.id)\">\n+                            <span class=\"fa fa-trash-o\"></span>\n+                        </button>\n+                    </td>\n+                    <td>\n+                        <button class=\"btn btn-warning\" ng-click=\"contactCtrl.startEditing(contact)\">\n+                            <span class=\"fa fa-pencil\"></span>\n+                        </button>\n+                    </td>\n+                </tr>\n+            </tbody>\n+        </table>\n+","path":"client/views/contacts/contacts.index.html","position":79,"original_position":79,"commit_id":"16bb30e38ab2e6afca112d215ffe0cc6ad99afb7","original_commit_id":"16bb30e38ab2e6afca112d215ffe0cc6ad99afb7","user":{"login":"Jenuma","id":6710337,"avatar_url":"https://avatars.githubusercontent.com/u/6710337?v=3","gravatar_id":"","url":"https://api.github.com/users/Jenuma","html_url":"https://github.com/Jenuma","followers_url":"https://api.github.com/users/Jenuma/followers","following_url":"https://api.github.com/users/Jenuma/following{/other_user}","gists_url":"https://api.github.com/users/Jenuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenuma/subscriptions","organizations_url":"https://api.github.com/users/Jenuma/orgs","repos_url":"https://api.github.com/users/Jenuma/repos","events_url":"https://api.github.com/users/Jenuma/events{/privacy}","received_events_url":"https://api.github.com/users/Jenuma/received_events","type":"User","site_admin":false},"body":"Reformat this without the newlines and extra tabs.","created_at":"2016-09-29T15:08:51Z","updated_at":"2016-09-29T15:08:52Z","html_url":"https://github.com/Jenuma/contact-list/pull/6#discussion_r81159533","pull_request_url":"https://api.github.com/repos/Jenuma/contact-list/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Jenuma/contact-list/pulls/comments/81159533"},"html":{"href":"https://github.com/Jenuma/contact-list/pull/6#discussion_r81159533"},"pull_request":{"href":"https://api.github.com/repos/Jenuma/contact-list/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Jenuma/contact-list/pulls/6","id":87331874,"html_url":"https://github.com/Jenuma/contact-list/pull/6","diff_url":"https://github.com/Jenuma/contact-list/pull/6.diff","patch_url":"https://github.com/Jenuma/contact-list/pull/6.patch","issue_url":"https://api.github.com/repos/Jenuma/contact-list/issues/6","number":6,"state":"open","locked":false,"title":"Added ability to edit contacts","user":{"login":"Jenuma","id":6710337,"avatar_url":"https://avatars.githubusercontent.com/u/6710337?v=3","gravatar_id":"","url":"https://api.github.com/users/Jenuma","html_url":"https://github.com/Jenuma","followers_url":"https://api.github.com/users/Jenuma/followers","following_url":"https://api.github.com/users/Jenuma/following{/other_user}","gists_url":"https://api.github.com/users/Jenuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenuma/subscriptions","organizations_url":"https://api.github.com/users/Jenuma/orgs","repos_url":"https://api.github.com/users/Jenuma/repos","events_url":"https://api.github.com/users/Jenuma/events{/privacy}","received_events_url":"https://api.github.com/users/Jenuma/received_events","type":"User","site_admin":false},"body":"- Added ability to edit contacts via orange edit buttons\r\n- Changed add button to function as a confirm edit button when editing\r\n- Added cancel editing button next to add button, visible when editing\r\n- Added specs for client and server edit endpoints\r\n- Added new dummy data to the development-data file for the edit specs\r\n- Updated package version number\r\n- Updated the to-do list","created_at":"2016-09-29T15:05:31Z","updated_at":"2016-09-29T15:08:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18022df443f6cc620f727a24c4db20f70c639c83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Jenuma/contact-list/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Jenuma/contact-list/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Jenuma/contact-list/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Jenuma/contact-list/issues/6/comments","statuses_url":"https://api.github.com/repos/Jenuma/contact-list/statuses/16bb30e38ab2e6afca112d215ffe0cc6ad99afb7","head":{"label":"Jenuma:feature/edit-contact","ref":"feature/edit-contact","sha":"16bb30e38ab2e6afca112d215ffe0cc6ad99afb7","user":{"login":"Jenuma","id":6710337,"avatar_url":"https://avatars.githubusercontent.com/u/6710337?v=3","gravatar_id":"","url":"https://api.github.com/users/Jenuma","html_url":"https://github.com/Jenuma","followers_url":"https://api.github.com/users/Jenuma/followers","following_url":"https://api.github.com/users/Jenuma/following{/other_user}","gists_url":"https://api.github.com/users/Jenuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenuma/subscriptions","organizations_url":"https://api.github.com/users/Jenuma/orgs","repos_url":"https://api.github.com/users/Jenuma/repos","events_url":"https://api.github.com/users/Jenuma/events{/privacy}","received_events_url":"https://api.github.com/users/Jenuma/received_events","type":"User","site_admin":false},"repo":{"id":68051392,"name":"contact-list","full_name":"Jenuma/contact-list","owner":{"login":"Jenuma","id":6710337,"avatar_url":"https://avatars.githubusercontent.com/u/6710337?v=3","gravatar_id":"","url":"https://api.github.com/users/Jenuma","html_url":"https://github.com/Jenuma","followers_url":"https://api.github.com/users/Jenuma/followers","following_url":"https://api.github.com/users/Jenuma/following{/other_user}","gists_url":"https://api.github.com/users/Jenuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenuma/subscriptions","organizations_url":"https://api.github.com/users/Jenuma/orgs","repos_url":"https://api.github.com/users/Jenuma/repos","events_url":"https://api.github.com/users/Jenuma/events{/privacy}","received_events_url":"https://api.github.com/users/Jenuma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jenuma/contact-list","description":"An example project for becoming familiar with MEAN stack.","fork":false,"url":"https://api.github.com/repos/Jenuma/contact-list","forks_url":"https://api.github.com/repos/Jenuma/contact-list/forks","keys_url":"https://api.github.com/repos/Jenuma/contact-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jenuma/contact-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jenuma/contact-list/teams","hooks_url":"https://api.github.com/repos/Jenuma/contact-list/hooks","issue_events_url":"https://api.github.com/repos/Jenuma/contact-list/issues/events{/number}","events_url":"https://api.github.com/repos/Jenuma/contact-list/events","assignees_url":"https://api.github.com/repos/Jenuma/contact-list/assignees{/user}","branches_url":"https://api.github.com/repos/Jenuma/contact-list/branches{/branch}","tags_url":"https://api.github.com/repos/Jenuma/contact-list/tags","blobs_url":"https://api.github.com/repos/Jenuma/contact-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jenuma/contact-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jenuma/contact-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jenuma/contact-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jenuma/contact-list/statuses/{sha}","languages_url":"https://api.github.com/repos/Jenuma/contact-list/languages","stargazers_url":"https://api.github.com/repos/Jenuma/contact-list/stargazers","contributors_url":"https://api.github.com/repos/Jenuma/contact-list/contributors","subscribers_url":"https://api.github.com/repos/Jenuma/contact-list/subscribers","subscription_url":"https://api.github.com/repos/Jenuma/contact-list/subscription","commits_url":"https://api.github.com/repos/Jenuma/contact-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jenuma/contact-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jenuma/contact-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jenuma/contact-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jenuma/contact-list/contents/{+path}","compare_url":"https://api.github.com/repos/Jenuma/contact-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jenuma/contact-list/merges","archive_url":"https://api.github.com/repos/Jenuma/contact-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jenuma/contact-list/downloads","issues_url":"https://api.github.com/repos/Jenuma/contact-list/issues{/number}","pulls_url":"https://api.github.com/repos/Jenuma/contact-list/pulls{/number}","milestones_url":"https://api.github.com/repos/Jenuma/contact-list/milestones{/number}","notifications_url":"https://api.github.com/repos/Jenuma/contact-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jenuma/contact-list/labels{/name}","releases_url":"https://api.github.com/repos/Jenuma/contact-list/releases{/id}","deployments_url":"https://api.github.com/repos/Jenuma/contact-list/deployments","created_at":"2016-09-12T21:54:55Z","updated_at":"2016-09-12T22:08:22Z","pushed_at":"2016-09-29T15:05:31Z","git_url":"git://github.com/Jenuma/contact-list.git","ssh_url":"git@github.com:Jenuma/contact-list.git","clone_url":"https://github.com/Jenuma/contact-list.git","svn_url":"https://github.com/Jenuma/contact-list","homepage":null,"size":2533,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Jenuma:master","ref":"master","sha":"3fc4e041d1912f9289fad1e8b0c73b705a294171","user":{"login":"Jenuma","id":6710337,"avatar_url":"https://avatars.githubusercontent.com/u/6710337?v=3","gravatar_id":"","url":"https://api.github.com/users/Jenuma","html_url":"https://github.com/Jenuma","followers_url":"https://api.github.com/users/Jenuma/followers","following_url":"https://api.github.com/users/Jenuma/following{/other_user}","gists_url":"https://api.github.com/users/Jenuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenuma/subscriptions","organizations_url":"https://api.github.com/users/Jenuma/orgs","repos_url":"https://api.github.com/users/Jenuma/repos","events_url":"https://api.github.com/users/Jenuma/events{/privacy}","received_events_url":"https://api.github.com/users/Jenuma/received_events","type":"User","site_admin":false},"repo":{"id":68051392,"name":"contact-list","full_name":"Jenuma/contact-list","owner":{"login":"Jenuma","id":6710337,"avatar_url":"https://avatars.githubusercontent.com/u/6710337?v=3","gravatar_id":"","url":"https://api.github.com/users/Jenuma","html_url":"https://github.com/Jenuma","followers_url":"https://api.github.com/users/Jenuma/followers","following_url":"https://api.github.com/users/Jenuma/following{/other_user}","gists_url":"https://api.github.com/users/Jenuma/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenuma/subscriptions","organizations_url":"https://api.github.com/users/Jenuma/orgs","repos_url":"https://api.github.com/users/Jenuma/repos","events_url":"https://api.github.com/users/Jenuma/events{/privacy}","received_events_url":"https://api.github.com/users/Jenuma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jenuma/contact-list","description":"An example project for becoming familiar with MEAN stack.","fork":false,"url":"https://api.github.com/repos/Jenuma/contact-list","forks_url":"https://api.github.com/repos/Jenuma/contact-list/forks","keys_url":"https://api.github.com/repos/Jenuma/contact-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jenuma/contact-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jenuma/contact-list/teams","hooks_url":"https://api.github.com/repos/Jenuma/contact-list/hooks","issue_events_url":"https://api.github.com/repos/Jenuma/contact-list/issues/events{/number}","events_url":"https://api.github.com/repos/Jenuma/contact-list/events","assignees_url":"https://api.github.com/repos/Jenuma/contact-list/assignees{/user}","branches_url":"https://api.github.com/repos/Jenuma/contact-list/branches{/branch}","tags_url":"https://api.github.com/repos/Jenuma/contact-list/tags","blobs_url":"https://api.github.com/repos/Jenuma/contact-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jenuma/contact-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jenuma/contact-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jenuma/contact-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jenuma/contact-list/statuses/{sha}","languages_url":"https://api.github.com/repos/Jenuma/contact-list/languages","stargazers_url":"https://api.github.com/repos/Jenuma/contact-list/stargazers","contributors_url":"https://api.github.com/repos/Jenuma/contact-list/contributors","subscribers_url":"https://api.github.com/repos/Jenuma/contact-list/subscribers","subscription_url":"https://api.github.com/repos/Jenuma/contact-list/subscription","commits_url":"https://api.github.com/repos/Jenuma/contact-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jenuma/contact-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jenuma/contact-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jenuma/contact-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jenuma/contact-list/contents/{+path}","compare_url":"https://api.github.com/repos/Jenuma/contact-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jenuma/contact-list/merges","archive_url":"https://api.github.com/repos/Jenuma/contact-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jenuma/contact-list/downloads","issues_url":"https://api.github.com/repos/Jenuma/contact-list/issues{/number}","pulls_url":"https://api.github.com/repos/Jenuma/contact-list/pulls{/number}","milestones_url":"https://api.github.com/repos/Jenuma/contact-list/milestones{/number}","notifications_url":"https://api.github.com/repos/Jenuma/contact-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jenuma/contact-list/labels{/name}","releases_url":"https://api.github.com/repos/Jenuma/contact-list/releases{/id}","deployments_url":"https://api.github.com/repos/Jenuma/contact-list/deployments","created_at":"2016-09-12T21:54:55Z","updated_at":"2016-09-12T22:08:22Z","pushed_at":"2016-09-29T15:05:31Z","git_url":"git://github.com/Jenuma/contact-list.git","ssh_url":"git@github.com:Jenuma/contact-list.git","clone_url":"https://github.com/Jenuma/contact-list.git","svn_url":"https://github.com/Jenuma/contact-list","homepage":null,"size":2533,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Jenuma/contact-list/pulls/6"},"html":{"href":"https://github.com/Jenuma/contact-list/pull/6"},"issue":{"href":"https://api.github.com/repos/Jenuma/contact-list/issues/6"},"comments":{"href":"https://api.github.com/repos/Jenuma/contact-list/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Jenuma/contact-list/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Jenuma/contact-list/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Jenuma/contact-list/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Jenuma/contact-list/statuses/16bb30e38ab2e6afca112d215ffe0cc6ad99afb7"}}}}
{"actor":{"display_login":"Jenuma"}}