{"action":"created","comment":{"url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/comments/75553643","id":75553643,"diff_hunk":"@@ -1,47 +1,60 @@\n-app.directive('navbarEditor', function ($rootScope, AuthService, AUTH_EVENTS, $state) {\n+app.directive('navbarEditor', function ($rootScope, AuthService, AUTH_EVENTS, $state,PageFactory, $stateParams) {\n \n     return {\n         restrict: 'EA',\n         scope: {},\n         templateUrl: 'js/common/directives/navbar-editor/navbar-editor.html',\n-        link: function (scope) {\n+        link: function (scope,elem,attr) {\n             scope.items = [\n                 { label: 'Home', state: 'home' },\n                 // { label: 'Editor', state: 'editor' },\n                 { label: 'Dashboard', state: 'dashboard', auth:true },\n                 // { label: 'Members Only', state: 'membersOnly', auth: true }\n-            ];\n+                ];\n \n-            scope.user = null;\n \n-            scope.isLoggedIn = function () {\n-                return AuthService.isAuthenticated();\n-            };\n+scope.user = null;\n \n-            scope.logout = function () {\n-                AuthService.logout().then(function () {\n-                   $state.go('home');\n-                });\n-            };\n+scope.isLoggedIn = function () {\n+    return AuthService.isAuthenticated();\n+};\n \n-            var setUser = function () {\n-                AuthService.getLoggedInUser().then(function (user) {\n-                    scope.user = user;\n-                });\n-            };\n+scope.logout = function () {\n+    AuthService.logout().then(function () {\n+       $state.go('home');\n+   });\n+};\n \n-            var removeUser = function () {\n-                scope.user = null;\n-            };\n+var setUser = function () {\n+    AuthService.getLoggedInUser().then(function (user) {\n+        scope.user = user;\n+    });\n+};\n \n-            setUser();\n+var removeUser = function () {\n+    scope.user = null;\n+};\n \n-            $rootScope.$on(AUTH_EVENTS.loginSuccess, setUser);\n-            $rootScope.$on(AUTH_EVENTS.logoutSuccess, removeUser);\n-            $rootScope.$on(AUTH_EVENTS.sessionTimeout, removeUser);\n+setUser();\n \n-        }\n+//parses HTML from iFrame\n+  scope.parseHtml = function() {\n+    // console.log('made it');","path":"browser/js/common/directives/navbar-editor/navbar-editor.js","position":67,"original_position":67,"commit_id":"b125aab3c8928fcf0c1e56e3212582c46a38d05c","original_commit_id":"b125aab3c8928fcf0c1e56e3212582c46a38d05c","user":{"login":"bgergen","id":17029672,"avatar_url":"https://avatars.githubusercontent.com/u/17029672?v=3","gravatar_id":"","url":"https://api.github.com/users/bgergen","html_url":"https://github.com/bgergen","followers_url":"https://api.github.com/users/bgergen/followers","following_url":"https://api.github.com/users/bgergen/following{/other_user}","gists_url":"https://api.github.com/users/bgergen/gists{/gist_id}","starred_url":"https://api.github.com/users/bgergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgergen/subscriptions","organizations_url":"https://api.github.com/users/bgergen/orgs","repos_url":"https://api.github.com/users/bgergen/repos","events_url":"https://api.github.com/users/bgergen/events{/privacy}","received_events_url":"https://api.github.com/users/bgergen/received_events","type":"User","site_admin":false},"body":"Delete this line.","created_at":"2016-08-19T21:24:53Z","updated_at":"2016-08-19T21:24:53Z","html_url":"https://github.com/ivanyyuk/web-refinery/pull/56#discussion_r75553643","pull_request_url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/comments/75553643"},"html":{"href":"https://github.com/ivanyyuk/web-refinery/pull/56#discussion_r75553643"},"pull_request":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56","id":82047451,"html_url":"https://github.com/ivanyyuk/web-refinery/pull/56","diff_url":"https://github.com/ivanyyuk/web-refinery/pull/56.diff","patch_url":"https://github.com/ivanyyuk/web-refinery/pull/56.patch","issue_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/56","number":56,"state":"open","locked":false,"title":"save button functionaliy","user":{"login":"ivanyyuk","id":19157504,"avatar_url":"https://avatars.githubusercontent.com/u/19157504?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanyyuk","html_url":"https://github.com/ivanyyuk","followers_url":"https://api.github.com/users/ivanyyuk/followers","following_url":"https://api.github.com/users/ivanyyuk/following{/other_user}","gists_url":"https://api.github.com/users/ivanyyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanyyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanyyuk/subscriptions","organizations_url":"https://api.github.com/users/ivanyyuk/orgs","repos_url":"https://api.github.com/users/ivanyyuk/repos","events_url":"https://api.github.com/users/ivanyyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ivanyyuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-19T21:19:30Z","updated_at":"2016-08-19T21:24:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce7ff10274d37993883e55321444af4c66bc9142","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56/commits","review_comments_url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56/comments","review_comment_url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/56/comments","statuses_url":"https://api.github.com/repos/ivanyyuk/web-refinery/statuses/b125aab3c8928fcf0c1e56e3212582c46a38d05c","head":{"label":"ivanyyuk:save-button","ref":"save-button","sha":"b125aab3c8928fcf0c1e56e3212582c46a38d05c","user":{"login":"ivanyyuk","id":19157504,"avatar_url":"https://avatars.githubusercontent.com/u/19157504?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanyyuk","html_url":"https://github.com/ivanyyuk","followers_url":"https://api.github.com/users/ivanyyuk/followers","following_url":"https://api.github.com/users/ivanyyuk/following{/other_user}","gists_url":"https://api.github.com/users/ivanyyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanyyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanyyuk/subscriptions","organizations_url":"https://api.github.com/users/ivanyyuk/orgs","repos_url":"https://api.github.com/users/ivanyyuk/repos","events_url":"https://api.github.com/users/ivanyyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ivanyyuk/received_events","type":"User","site_admin":false},"repo":{"id":65418840,"name":"web-refinery","full_name":"ivanyyuk/web-refinery","owner":{"login":"ivanyyuk","id":19157504,"avatar_url":"https://avatars.githubusercontent.com/u/19157504?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanyyuk","html_url":"https://github.com/ivanyyuk","followers_url":"https://api.github.com/users/ivanyyuk/followers","following_url":"https://api.github.com/users/ivanyyuk/following{/other_user}","gists_url":"https://api.github.com/users/ivanyyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanyyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanyyuk/subscriptions","organizations_url":"https://api.github.com/users/ivanyyuk/orgs","repos_url":"https://api.github.com/users/ivanyyuk/repos","events_url":"https://api.github.com/users/ivanyyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ivanyyuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivanyyuk/web-refinery","description":null,"fork":false,"url":"https://api.github.com/repos/ivanyyuk/web-refinery","forks_url":"https://api.github.com/repos/ivanyyuk/web-refinery/forks","keys_url":"https://api.github.com/repos/ivanyyuk/web-refinery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivanyyuk/web-refinery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivanyyuk/web-refinery/teams","hooks_url":"https://api.github.com/repos/ivanyyuk/web-refinery/hooks","issue_events_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/events{/number}","events_url":"https://api.github.com/repos/ivanyyuk/web-refinery/events","assignees_url":"https://api.github.com/repos/ivanyyuk/web-refinery/assignees{/user}","branches_url":"https://api.github.com/repos/ivanyyuk/web-refinery/branches{/branch}","tags_url":"https://api.github.com/repos/ivanyyuk/web-refinery/tags","blobs_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivanyyuk/web-refinery/statuses/{sha}","languages_url":"https://api.github.com/repos/ivanyyuk/web-refinery/languages","stargazers_url":"https://api.github.com/repos/ivanyyuk/web-refinery/stargazers","contributors_url":"https://api.github.com/repos/ivanyyuk/web-refinery/contributors","subscribers_url":"https://api.github.com/repos/ivanyyuk/web-refinery/subscribers","subscription_url":"https://api.github.com/repos/ivanyyuk/web-refinery/subscription","commits_url":"https://api.github.com/repos/ivanyyuk/web-refinery/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivanyyuk/web-refinery/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivanyyuk/web-refinery/contents/{+path}","compare_url":"https://api.github.com/repos/ivanyyuk/web-refinery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivanyyuk/web-refinery/merges","archive_url":"https://api.github.com/repos/ivanyyuk/web-refinery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivanyyuk/web-refinery/downloads","issues_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues{/number}","pulls_url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls{/number}","milestones_url":"https://api.github.com/repos/ivanyyuk/web-refinery/milestones{/number}","notifications_url":"https://api.github.com/repos/ivanyyuk/web-refinery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivanyyuk/web-refinery/labels{/name}","releases_url":"https://api.github.com/repos/ivanyyuk/web-refinery/releases{/id}","deployments_url":"https://api.github.com/repos/ivanyyuk/web-refinery/deployments","created_at":"2016-08-10T21:51:08Z","updated_at":"2016-08-17T16:22:00Z","pushed_at":"2016-08-19T21:19:30Z","git_url":"git://github.com/ivanyyuk/web-refinery.git","ssh_url":"git@github.com:ivanyyuk/web-refinery.git","clone_url":"https://github.com/ivanyyuk/web-refinery.git","svn_url":"https://github.com/ivanyyuk/web-refinery","homepage":null,"size":17695,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"ivanyyuk:master","ref":"master","sha":"ef2c1ff0388be43b98491e5e2fcbb5907fd6c36e","user":{"login":"ivanyyuk","id":19157504,"avatar_url":"https://avatars.githubusercontent.com/u/19157504?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanyyuk","html_url":"https://github.com/ivanyyuk","followers_url":"https://api.github.com/users/ivanyyuk/followers","following_url":"https://api.github.com/users/ivanyyuk/following{/other_user}","gists_url":"https://api.github.com/users/ivanyyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanyyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanyyuk/subscriptions","organizations_url":"https://api.github.com/users/ivanyyuk/orgs","repos_url":"https://api.github.com/users/ivanyyuk/repos","events_url":"https://api.github.com/users/ivanyyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ivanyyuk/received_events","type":"User","site_admin":false},"repo":{"id":65418840,"name":"web-refinery","full_name":"ivanyyuk/web-refinery","owner":{"login":"ivanyyuk","id":19157504,"avatar_url":"https://avatars.githubusercontent.com/u/19157504?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanyyuk","html_url":"https://github.com/ivanyyuk","followers_url":"https://api.github.com/users/ivanyyuk/followers","following_url":"https://api.github.com/users/ivanyyuk/following{/other_user}","gists_url":"https://api.github.com/users/ivanyyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanyyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanyyuk/subscriptions","organizations_url":"https://api.github.com/users/ivanyyuk/orgs","repos_url":"https://api.github.com/users/ivanyyuk/repos","events_url":"https://api.github.com/users/ivanyyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ivanyyuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivanyyuk/web-refinery","description":null,"fork":false,"url":"https://api.github.com/repos/ivanyyuk/web-refinery","forks_url":"https://api.github.com/repos/ivanyyuk/web-refinery/forks","keys_url":"https://api.github.com/repos/ivanyyuk/web-refinery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivanyyuk/web-refinery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivanyyuk/web-refinery/teams","hooks_url":"https://api.github.com/repos/ivanyyuk/web-refinery/hooks","issue_events_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/events{/number}","events_url":"https://api.github.com/repos/ivanyyuk/web-refinery/events","assignees_url":"https://api.github.com/repos/ivanyyuk/web-refinery/assignees{/user}","branches_url":"https://api.github.com/repos/ivanyyuk/web-refinery/branches{/branch}","tags_url":"https://api.github.com/repos/ivanyyuk/web-refinery/tags","blobs_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivanyyuk/web-refinery/statuses/{sha}","languages_url":"https://api.github.com/repos/ivanyyuk/web-refinery/languages","stargazers_url":"https://api.github.com/repos/ivanyyuk/web-refinery/stargazers","contributors_url":"https://api.github.com/repos/ivanyyuk/web-refinery/contributors","subscribers_url":"https://api.github.com/repos/ivanyyuk/web-refinery/subscribers","subscription_url":"https://api.github.com/repos/ivanyyuk/web-refinery/subscription","commits_url":"https://api.github.com/repos/ivanyyuk/web-refinery/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivanyyuk/web-refinery/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivanyyuk/web-refinery/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivanyyuk/web-refinery/contents/{+path}","compare_url":"https://api.github.com/repos/ivanyyuk/web-refinery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivanyyuk/web-refinery/merges","archive_url":"https://api.github.com/repos/ivanyyuk/web-refinery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivanyyuk/web-refinery/downloads","issues_url":"https://api.github.com/repos/ivanyyuk/web-refinery/issues{/number}","pulls_url":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls{/number}","milestones_url":"https://api.github.com/repos/ivanyyuk/web-refinery/milestones{/number}","notifications_url":"https://api.github.com/repos/ivanyyuk/web-refinery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivanyyuk/web-refinery/labels{/name}","releases_url":"https://api.github.com/repos/ivanyyuk/web-refinery/releases{/id}","deployments_url":"https://api.github.com/repos/ivanyyuk/web-refinery/deployments","created_at":"2016-08-10T21:51:08Z","updated_at":"2016-08-17T16:22:00Z","pushed_at":"2016-08-19T21:19:30Z","git_url":"git://github.com/ivanyyuk/web-refinery.git","ssh_url":"git@github.com:ivanyyuk/web-refinery.git","clone_url":"https://github.com/ivanyyuk/web-refinery.git","svn_url":"https://github.com/ivanyyuk/web-refinery","homepage":null,"size":17695,"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":11,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56"},"html":{"href":"https://github.com/ivanyyuk/web-refinery/pull/56"},"issue":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/56"},"comments":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/ivanyyuk/web-refinery/statuses/b125aab3c8928fcf0c1e56e3212582c46a38d05c"}}}}
{"actor":{"display_login":"bgergen"}}