{"action":"created","comment":{"url":"https://api.github.com/repos/Philips7/Restaurants/pulls/comments/144730361","pull_request_review_id":69428307,"id":144730361,"diff_hunk":"@@ -1,16 +1,49 @@\n-import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core';\n+import {AfterViewInit, ChangeDetectionStrategy, Component, OnInit} from '@angular/core';\n+import {Store} from '@ngrx/store';\n+import {Observable} from 'rxjs/Observable';\n+\n+import {User} from '../../../core';\n+import {AppState, selectUserAll, GetUser, GoogleLogin, Logout} from '../../../store';\n \n @Component({\n   selector: 'app-header',\n   templateUrl: './header.component.html',\n-  styleUrls: ['./header.component.css'],\n+  styleUrls: ['./header.component.scss'],\n   changeDetection: ChangeDetectionStrategy.OnPush\n })\n-export class HeaderComponent implements OnInit {\n+export class HeaderComponent implements OnInit, AfterViewInit {\n+\n+  user$: Observable<User>;\n \n-  constructor() { }\n+  constructor(private store: Store<AppState>) {\n+    this.user$ = this.store.select(selectUserAll);\n+    this.store.dispatch(new GetUser());\n+  }\n \n   ngOnInit() {\n   }\n \n+  ngAfterViewInit(): void {\n+    document.querySelector('.nav__markdown')","path":"src/app/shared/components/header/header.component.ts","position":31,"original_position":31,"commit_id":"8c007e632f8d897a24782d6641a713d0c38f97c1","original_commit_id":"8c007e632f8d897a24782d6641a713d0c38f97c1","user":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-10-15T20:12:58Z","updated_at":"2017-10-15T20:12:58Z","html_url":"https://github.com/Philips7/Restaurants/pull/6#discussion_r144730361","pull_request_url":"https://api.github.com/repos/Philips7/Restaurants/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Philips7/Restaurants/pulls/comments/144730361"},"html":{"href":"https://github.com/Philips7/Restaurants/pull/6#discussion_r144730361"},"pull_request":{"href":"https://api.github.com/repos/Philips7/Restaurants/pulls/6"}},"in_reply_to_id":144727997},"pull_request":{"url":"https://api.github.com/repos/Philips7/Restaurants/pulls/6","id":146630789,"html_url":"https://github.com/Philips7/Restaurants/pull/6","diff_url":"https://github.com/Philips7/Restaurants/pull/6.diff","patch_url":"https://github.com/Philips7/Restaurants/pull/6.patch","issue_url":"https://api.github.com/repos/Philips7/Restaurants/issues/6","number":6,"state":"open","locked":false,"title":"PIFR-18 PIFT-17  Restauration details and main page layout ","user":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-15T02:24:01Z","updated_at":"2017-10-15T20:12:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c75d963f75fa53789f79b2100b3739dd474bffe3","assignee":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"assignees":[{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Philips7/Restaurants/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Philips7/Restaurants/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Philips7/Restaurants/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Philips7/Restaurants/issues/6/comments","statuses_url":"https://api.github.com/repos/Philips7/Restaurants/statuses/8c007e632f8d897a24782d6641a713d0c38f97c1","head":{"label":"Philips7:feature/sprint-1-PIFR-18--restauration-details-layout","ref":"feature/sprint-1-PIFR-18--restauration-details-layout","sha":"8c007e632f8d897a24782d6641a713d0c38f97c1","user":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"repo":{"id":105777240,"name":"Restaurants","full_name":"Philips7/Restaurants","owner":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Philips7/Restaurants","description":null,"fork":false,"url":"https://api.github.com/repos/Philips7/Restaurants","forks_url":"https://api.github.com/repos/Philips7/Restaurants/forks","keys_url":"https://api.github.com/repos/Philips7/Restaurants/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Philips7/Restaurants/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Philips7/Restaurants/teams","hooks_url":"https://api.github.com/repos/Philips7/Restaurants/hooks","issue_events_url":"https://api.github.com/repos/Philips7/Restaurants/issues/events{/number}","events_url":"https://api.github.com/repos/Philips7/Restaurants/events","assignees_url":"https://api.github.com/repos/Philips7/Restaurants/assignees{/user}","branches_url":"https://api.github.com/repos/Philips7/Restaurants/branches{/branch}","tags_url":"https://api.github.com/repos/Philips7/Restaurants/tags","blobs_url":"https://api.github.com/repos/Philips7/Restaurants/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Philips7/Restaurants/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Philips7/Restaurants/git/refs{/sha}","trees_url":"https://api.github.com/repos/Philips7/Restaurants/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Philips7/Restaurants/statuses/{sha}","languages_url":"https://api.github.com/repos/Philips7/Restaurants/languages","stargazers_url":"https://api.github.com/repos/Philips7/Restaurants/stargazers","contributors_url":"https://api.github.com/repos/Philips7/Restaurants/contributors","subscribers_url":"https://api.github.com/repos/Philips7/Restaurants/subscribers","subscription_url":"https://api.github.com/repos/Philips7/Restaurants/subscription","commits_url":"https://api.github.com/repos/Philips7/Restaurants/commits{/sha}","git_commits_url":"https://api.github.com/repos/Philips7/Restaurants/git/commits{/sha}","comments_url":"https://api.github.com/repos/Philips7/Restaurants/comments{/number}","issue_comment_url":"https://api.github.com/repos/Philips7/Restaurants/issues/comments{/number}","contents_url":"https://api.github.com/repos/Philips7/Restaurants/contents/{+path}","compare_url":"https://api.github.com/repos/Philips7/Restaurants/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Philips7/Restaurants/merges","archive_url":"https://api.github.com/repos/Philips7/Restaurants/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Philips7/Restaurants/downloads","issues_url":"https://api.github.com/repos/Philips7/Restaurants/issues{/number}","pulls_url":"https://api.github.com/repos/Philips7/Restaurants/pulls{/number}","milestones_url":"https://api.github.com/repos/Philips7/Restaurants/milestones{/number}","notifications_url":"https://api.github.com/repos/Philips7/Restaurants/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Philips7/Restaurants/labels{/name}","releases_url":"https://api.github.com/repos/Philips7/Restaurants/releases{/id}","deployments_url":"https://api.github.com/repos/Philips7/Restaurants/deployments","created_at":"2017-10-04T14:17:19Z","updated_at":"2017-10-06T07:57:44Z","pushed_at":"2017-10-15T18:49:58Z","git_url":"git://github.com/Philips7/Restaurants.git","ssh_url":"git@github.com:Philips7/Restaurants.git","clone_url":"https://github.com/Philips7/Restaurants.git","svn_url":"https://github.com/Philips7/Restaurants","homepage":null,"size":2777,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"base":{"label":"Philips7:develop","ref":"develop","sha":"66bf789bf64bf622dfa70e121537704109371c0a","user":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"repo":{"id":105777240,"name":"Restaurants","full_name":"Philips7/Restaurants","owner":{"login":"Philips7","id":19551727,"avatar_url":"https://avatars2.githubusercontent.com/u/19551727?v=4","gravatar_id":"","url":"https://api.github.com/users/Philips7","html_url":"https://github.com/Philips7","followers_url":"https://api.github.com/users/Philips7/followers","following_url":"https://api.github.com/users/Philips7/following{/other_user}","gists_url":"https://api.github.com/users/Philips7/gists{/gist_id}","starred_url":"https://api.github.com/users/Philips7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philips7/subscriptions","organizations_url":"https://api.github.com/users/Philips7/orgs","repos_url":"https://api.github.com/users/Philips7/repos","events_url":"https://api.github.com/users/Philips7/events{/privacy}","received_events_url":"https://api.github.com/users/Philips7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Philips7/Restaurants","description":null,"fork":false,"url":"https://api.github.com/repos/Philips7/Restaurants","forks_url":"https://api.github.com/repos/Philips7/Restaurants/forks","keys_url":"https://api.github.com/repos/Philips7/Restaurants/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Philips7/Restaurants/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Philips7/Restaurants/teams","hooks_url":"https://api.github.com/repos/Philips7/Restaurants/hooks","issue_events_url":"https://api.github.com/repos/Philips7/Restaurants/issues/events{/number}","events_url":"https://api.github.com/repos/Philips7/Restaurants/events","assignees_url":"https://api.github.com/repos/Philips7/Restaurants/assignees{/user}","branches_url":"https://api.github.com/repos/Philips7/Restaurants/branches{/branch}","tags_url":"https://api.github.com/repos/Philips7/Restaurants/tags","blobs_url":"https://api.github.com/repos/Philips7/Restaurants/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Philips7/Restaurants/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Philips7/Restaurants/git/refs{/sha}","trees_url":"https://api.github.com/repos/Philips7/Restaurants/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Philips7/Restaurants/statuses/{sha}","languages_url":"https://api.github.com/repos/Philips7/Restaurants/languages","stargazers_url":"https://api.github.com/repos/Philips7/Restaurants/stargazers","contributors_url":"https://api.github.com/repos/Philips7/Restaurants/contributors","subscribers_url":"https://api.github.com/repos/Philips7/Restaurants/subscribers","subscription_url":"https://api.github.com/repos/Philips7/Restaurants/subscription","commits_url":"https://api.github.com/repos/Philips7/Restaurants/commits{/sha}","git_commits_url":"https://api.github.com/repos/Philips7/Restaurants/git/commits{/sha}","comments_url":"https://api.github.com/repos/Philips7/Restaurants/comments{/number}","issue_comment_url":"https://api.github.com/repos/Philips7/Restaurants/issues/comments{/number}","contents_url":"https://api.github.com/repos/Philips7/Restaurants/contents/{+path}","compare_url":"https://api.github.com/repos/Philips7/Restaurants/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Philips7/Restaurants/merges","archive_url":"https://api.github.com/repos/Philips7/Restaurants/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Philips7/Restaurants/downloads","issues_url":"https://api.github.com/repos/Philips7/Restaurants/issues{/number}","pulls_url":"https://api.github.com/repos/Philips7/Restaurants/pulls{/number}","milestones_url":"https://api.github.com/repos/Philips7/Restaurants/milestones{/number}","notifications_url":"https://api.github.com/repos/Philips7/Restaurants/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Philips7/Restaurants/labels{/name}","releases_url":"https://api.github.com/repos/Philips7/Restaurants/releases{/id}","deployments_url":"https://api.github.com/repos/Philips7/Restaurants/deployments","created_at":"2017-10-04T14:17:19Z","updated_at":"2017-10-06T07:57:44Z","pushed_at":"2017-10-15T18:49:58Z","git_url":"git://github.com/Philips7/Restaurants.git","ssh_url":"git@github.com:Philips7/Restaurants.git","clone_url":"https://github.com/Philips7/Restaurants.git","svn_url":"https://github.com/Philips7/Restaurants","homepage":null,"size":2777,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Philips7/Restaurants/pulls/6"},"html":{"href":"https://github.com/Philips7/Restaurants/pull/6"},"issue":{"href":"https://api.github.com/repos/Philips7/Restaurants/issues/6"},"comments":{"href":"https://api.github.com/repos/Philips7/Restaurants/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Philips7/Restaurants/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Philips7/Restaurants/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Philips7/Restaurants/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Philips7/Restaurants/statuses/8c007e632f8d897a24782d6641a713d0c38f97c1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Philips7"}}