{"action":"created","comment":{"url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/comments/100504888","pull_request_review_id":21214169,"id":100504888,"diff_hunk":"@@ -64,23 +64,47 @@ angular.module('mean.directives', [])\n       templateUrl: '/views/timer.html',\n       link: function (scope, elem, attr) { }\n     };\n-  }).directive('landing', function () {\n+  })\n+  .directive('landing', function ($timeout, $http) {\n     return {\n       restrict: 'EA',\n       link: function (scope, elem, attr) {\n         scope.showOptions = true;\n         scope.showNavBar = true;\n-\n-        if ((localStorage.getItem('JWT') && localStorage.getItem('Email')) || localStorage.getItem('jwtToken')) {\n+        scope.signOut = false;\n+        if ((localStorage.getItem('JWT') && localStorage.getItem('Email')) || localStorage.getItem('jwtToken') || localStorage.getItem('sign_in')) {\n           scope.showNavBar = false;\n+          scope.signOut = true;\n+        }\n+\n+        if (localStorage.getItem('JWT')) {\n+          // Fix ??\n+          // set alert message to true for 4000ms\n+          $timeout(function () {\n+            scope.signOut = false;\n+          }, 4000);\n         }\n         scope.userLogout = function () {\n-          // remove the password and email on logout\n+          // remove the JWT, email and expDate on logout\n           localStorage.removeItem('JWT');\n           localStorage.removeItem('Email');\n           localStorage.removeItem('expDate');\n           localStorage.removeItem('jwtToken');\n+          localStorage.removeItem('sign_in');\n         };\n       }\n     };\n+  })\n+  .directive('alertMessage', function ($timeout) {","path":"public/js/directives.js","position":39,"original_position":39,"commit_id":"b0443df579c7fe196bb604d6cd97990d9b031459","original_commit_id":"b0443df579c7fe196bb604d6cd97990d9b031459","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Strings must use doublequote     quotes","created_at":"2017-02-10T10:11:04Z","updated_at":"2017-02-10T10:11:04Z","html_url":"https://github.com/andela/project-jiayou-cfh/pull/24#discussion_r100504888","pull_request_url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/comments/100504888"},"html":{"href":"https://github.com/andela/project-jiayou-cfh/pull/24#discussion_r100504888"},"pull_request":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24","id":105593155,"html_url":"https://github.com/andela/project-jiayou-cfh/pull/24","diff_url":"https://github.com/andela/project-jiayou-cfh/pull/24.diff","patch_url":"https://github.com/andela/project-jiayou-cfh/pull/24.patch","issue_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/24","number":24,"state":"open","locked":false,"title":"#137138327 Users should be able to create/start a new game","user":{"login":"andela-fopara","id":24937764,"avatar_url":"https://avatars.githubusercontent.com/u/24937764?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-fopara","html_url":"https://github.com/andela-fopara","followers_url":"https://api.github.com/users/andela-fopara/followers","following_url":"https://api.github.com/users/andela-fopara/following{/other_user}","gists_url":"https://api.github.com/users/andela-fopara/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-fopara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-fopara/subscriptions","organizations_url":"https://api.github.com/users/andela-fopara/orgs","repos_url":"https://api.github.com/users/andela-fopara/repos","events_url":"https://api.github.com/users/andela-fopara/events{/privacy}","received_events_url":"https://api.github.com/users/andela-fopara/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n\r\nThis PR shows a modal dialog when user successfully signs in. The modal dialog asks the user if the user wishes to start a new game or not, if the modal is closed or 'No' button is clicked, the user is being routed to the charity page, and if the user clicks the 'Yes' button, the user is taken to the Gaming screen. On the gaming screen, when the user clicks the abandon button, a modal is shown and when the user clicks 'Yes' the game is abandoned, if modal is closed, the game remains. The PR also takes care of posting every game started to the games collection and appends the record's id to the end of the uniqueRoom Id generated.\r\n\r\n**How should this be manually tested?**\r\nRun npm start or nodemon server.js\r\n\r\n**Any background information context you want to provide?**\r\nThis feature makes use angular materialize.\r\n\r\n**What are the relevant pivotal tracker stories?**\r\nUsers should be able to create/start a new game - #137138327","created_at":"2017-02-10T09:32:44Z","updated_at":"2017-02-10T10:11:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da22731eb08b108a49801d0f19da00ae35bef18f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24/commits","review_comments_url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24/comments","review_comment_url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/24/comments","statuses_url":"https://api.github.com/repos/andela/project-jiayou-cfh/statuses/b0443df579c7fe196bb604d6cd97990d9b031459","head":{"label":"andela:feature/Users-should-be-able-to-create/start-a-new-game/137138327-material","ref":"feature/Users-should-be-able-to-create/start-a-new-game/137138327-material","sha":"b0443df579c7fe196bb604d6cd97990d9b031459","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":78124763,"name":"project-jiayou-cfh","full_name":"andela/project-jiayou-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/project-jiayou-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/project-jiayou-cfh","forks_url":"https://api.github.com/repos/andela/project-jiayou-cfh/forks","keys_url":"https://api.github.com/repos/andela/project-jiayou-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/project-jiayou-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/project-jiayou-cfh/teams","hooks_url":"https://api.github.com/repos/andela/project-jiayou-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/project-jiayou-cfh/events","assignees_url":"https://api.github.com/repos/andela/project-jiayou-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/project-jiayou-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/project-jiayou-cfh/tags","blobs_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/project-jiayou-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/project-jiayou-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/project-jiayou-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/project-jiayou-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/project-jiayou-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/project-jiayou-cfh/subscription","commits_url":"https://api.github.com/repos/andela/project-jiayou-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/project-jiayou-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/project-jiayou-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/project-jiayou-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/project-jiayou-cfh/merges","archive_url":"https://api.github.com/repos/andela/project-jiayou-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/project-jiayou-cfh/downloads","issues_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/project-jiayou-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/project-jiayou-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/project-jiayou-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/project-jiayou-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/project-jiayou-cfh/deployments","created_at":"2017-01-05T15:30:33Z","updated_at":"2017-01-20T15:57:13Z","pushed_at":"2017-02-10T10:10:20Z","git_url":"git://github.com/andela/project-jiayou-cfh.git","ssh_url":"git@github.com:andela/project-jiayou-cfh.git","clone_url":"https://github.com/andela/project-jiayou-cfh.git","svn_url":"https://github.com/andela/project-jiayou-cfh","homepage":null,"size":17403,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"development"}},"base":{"label":"andela:development","ref":"development","sha":"6846e9018a90695488ffcbeaefd02e7b02847ae6","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":78124763,"name":"project-jiayou-cfh","full_name":"andela/project-jiayou-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/project-jiayou-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/project-jiayou-cfh","forks_url":"https://api.github.com/repos/andela/project-jiayou-cfh/forks","keys_url":"https://api.github.com/repos/andela/project-jiayou-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/project-jiayou-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/project-jiayou-cfh/teams","hooks_url":"https://api.github.com/repos/andela/project-jiayou-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/project-jiayou-cfh/events","assignees_url":"https://api.github.com/repos/andela/project-jiayou-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/project-jiayou-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/project-jiayou-cfh/tags","blobs_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/project-jiayou-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/project-jiayou-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/project-jiayou-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/project-jiayou-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/project-jiayou-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/project-jiayou-cfh/subscription","commits_url":"https://api.github.com/repos/andela/project-jiayou-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/project-jiayou-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/project-jiayou-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/project-jiayou-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/project-jiayou-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/project-jiayou-cfh/merges","archive_url":"https://api.github.com/repos/andela/project-jiayou-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/project-jiayou-cfh/downloads","issues_url":"https://api.github.com/repos/andela/project-jiayou-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/project-jiayou-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/project-jiayou-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/project-jiayou-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/project-jiayou-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/project-jiayou-cfh/deployments","created_at":"2017-01-05T15:30:33Z","updated_at":"2017-01-20T15:57:13Z","pushed_at":"2017-02-10T10:10:20Z","git_url":"git://github.com/andela/project-jiayou-cfh.git","ssh_url":"git@github.com:andela/project-jiayou-cfh.git","clone_url":"https://github.com/andela/project-jiayou-cfh.git","svn_url":"https://github.com/andela/project-jiayou-cfh","homepage":null,"size":17403,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24"},"html":{"href":"https://github.com/andela/project-jiayou-cfh/pull/24"},"issue":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/24"},"comments":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/andela/project-jiayou-cfh/statuses/b0443df579c7fe196bb604d6cd97990d9b031459"}}}}
{"actor":{"display_login":"houndci-bot"}}