{"action":"created","comment":{"url":"https://api.github.com/repos/zerojargon/events2/pulls/comments/63665175","id":63665175,"diff_hunk":"@@ -0,0 +1,50 @@\n+import {Component} from 'angular2/core';\n+import {CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/common';\n+import {ROUTER_DIRECTIVES, RouteConfig, Router} from 'angular2/router';\n+import {EventCreateStore} from '../../../../stores/event-create.store';\n+import {Event} from '../../../../../shared/models/event.ts';\n+import {Session} from '../../../../../shared/models/session.ts';\n+import {DateService} from '../../../../../shared/services/date.service';\n+\n+import * as _ from 'lodash';\n+\n+@Component({\n+\tselector: 'event-edit-summary-header',\n+\tmoduleId: module.id,\n+\ttemplateUrl: './event-edit.summary.header.component.html',\n+\tstyleUrls: ['./event-edit.summary.header.component.css'],\n+\tdirectives: [FORM_DIRECTIVES, CORE_DIRECTIVES, ROUTER_DIRECTIVES]\n+})\n+\n+export class EventEditSummaryHeaderComponent {\n+\tpublic event:Event;\n+\tpublic startDate:Date;\n+\tpublic endDate:Date;\n+\tconstructor(private _eventCreateStore:EventCreateStore, private _dateService:DateService) {\n+\t\tthis.event = _eventCreateStore.currentEvent();\n+\t\tthis._setEventDates(this.event);\n+\t\t_eventCreateStore.eventUpdated$.subscribe(\n+\t\t\tevent => {\n+\t\t\t\tthis.event = event;\n+\t\t\t\tthis._setEventDates(this.event);\n+\t\t\t\tconsole.log(this.event);\n+\t\t\t}\n+\t\t);\n+\t}\n+\n+\n+\tprivate _setEventDates(event:Event) {","path":"src/event/components/event-edit/summary/summary-header/event-edit.summary.header.component.ts","position":36,"original_position":36,"commit_id":"9b079cf7bccf299575acf2f2b906df3eee1737a3","original_commit_id":"9b079cf7bccf299575acf2f2b906df3eee1737a3","user":{"login":"taijuten","id":4288526,"avatar_url":"https://avatars.githubusercontent.com/u/4288526?v=3","gravatar_id":"","url":"https://api.github.com/users/taijuten","html_url":"https://github.com/taijuten","followers_url":"https://api.github.com/users/taijuten/followers","following_url":"https://api.github.com/users/taijuten/following{/other_user}","gists_url":"https://api.github.com/users/taijuten/gists{/gist_id}","starred_url":"https://api.github.com/users/taijuten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taijuten/subscriptions","organizations_url":"https://api.github.com/users/taijuten/orgs","repos_url":"https://api.github.com/users/taijuten/repos","events_url":"https://api.github.com/users/taijuten/events{/privacy}","received_events_url":"https://api.github.com/users/taijuten/received_events","type":"User","site_admin":false},"body":"how about making a `getEventDates` method, which returns the dates. It then only returns the endDate if different?","created_at":"2016-05-18T08:37:29Z","updated_at":"2016-05-18T08:37:29Z","html_url":"https://github.com/zerojargon/events2/pull/7#discussion_r63665175","pull_request_url":"https://api.github.com/repos/zerojargon/events2/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/zerojargon/events2/pulls/comments/63665175"},"html":{"href":"https://github.com/zerojargon/events2/pull/7#discussion_r63665175"},"pull_request":{"href":"https://api.github.com/repos/zerojargon/events2/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/zerojargon/events2/pulls/7","id":66731138,"html_url":"https://github.com/zerojargon/events2/pull/7","diff_url":"https://github.com/zerojargon/events2/pull/7.diff","patch_url":"https://github.com/zerojargon/events2/pull/7.patch","issue_url":"https://api.github.com/repos/zerojargon/events2/issues/7","number":7,"state":"open","locked":false,"title":"Summary Progress and Implementing Create Design","user":{"login":"sam-cook","id":15870452,"avatar_url":"https://avatars.githubusercontent.com/u/15870452?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-cook","html_url":"https://github.com/sam-cook","followers_url":"https://api.github.com/users/sam-cook/followers","following_url":"https://api.github.com/users/sam-cook/following{/other_user}","gists_url":"https://api.github.com/users/sam-cook/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-cook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-cook/subscriptions","organizations_url":"https://api.github.com/users/sam-cook/orgs","repos_url":"https://api.github.com/users/sam-cook/repos","events_url":"https://api.github.com/users/sam-cook/events{/privacy}","received_events_url":"https://api.github.com/users/sam-cook/received_events","type":"User","site_admin":false},"body":"For Ralph to review!","created_at":"2016-04-16T07:46:45Z","updated_at":"2016-05-18T08:37:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe74dacefe97d56bdecfad268869f1e405db04a0","assignee":{"login":"sam-cook","id":15870452,"avatar_url":"https://avatars.githubusercontent.com/u/15870452?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-cook","html_url":"https://github.com/sam-cook","followers_url":"https://api.github.com/users/sam-cook/followers","following_url":"https://api.github.com/users/sam-cook/following{/other_user}","gists_url":"https://api.github.com/users/sam-cook/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-cook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-cook/subscriptions","organizations_url":"https://api.github.com/users/sam-cook/orgs","repos_url":"https://api.github.com/users/sam-cook/repos","events_url":"https://api.github.com/users/sam-cook/events{/privacy}","received_events_url":"https://api.github.com/users/sam-cook/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zerojargon/events2/pulls/7/commits","review_comments_url":"https://api.github.com/repos/zerojargon/events2/pulls/7/comments","review_comment_url":"https://api.github.com/repos/zerojargon/events2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zerojargon/events2/issues/7/comments","statuses_url":"https://api.github.com/repos/zerojargon/events2/statuses/9b079cf7bccf299575acf2f2b906df3eee1737a3","head":{"label":"zerojargon:implement_create_design","ref":"implement_create_design","sha":"9b079cf7bccf299575acf2f2b906df3eee1737a3","user":{"login":"zerojargon","id":11255328,"avatar_url":"https://avatars.githubusercontent.com/u/11255328?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojargon","html_url":"https://github.com/zerojargon","followers_url":"https://api.github.com/users/zerojargon/followers","following_url":"https://api.github.com/users/zerojargon/following{/other_user}","gists_url":"https://api.github.com/users/zerojargon/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojargon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojargon/subscriptions","organizations_url":"https://api.github.com/users/zerojargon/orgs","repos_url":"https://api.github.com/users/zerojargon/repos","events_url":"https://api.github.com/users/zerojargon/events{/privacy}","received_events_url":"https://api.github.com/users/zerojargon/received_events","type":"Organization","site_admin":false},"repo":{"id":53136589,"name":"events2","full_name":"zerojargon/events2","owner":{"login":"zerojargon","id":11255328,"avatar_url":"https://avatars.githubusercontent.com/u/11255328?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojargon","html_url":"https://github.com/zerojargon","followers_url":"https://api.github.com/users/zerojargon/followers","following_url":"https://api.github.com/users/zerojargon/following{/other_user}","gists_url":"https://api.github.com/users/zerojargon/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojargon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojargon/subscriptions","organizations_url":"https://api.github.com/users/zerojargon/orgs","repos_url":"https://api.github.com/users/zerojargon/repos","events_url":"https://api.github.com/users/zerojargon/events{/privacy}","received_events_url":"https://api.github.com/users/zerojargon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zerojargon/events2","description":"","fork":false,"url":"https://api.github.com/repos/zerojargon/events2","forks_url":"https://api.github.com/repos/zerojargon/events2/forks","keys_url":"https://api.github.com/repos/zerojargon/events2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zerojargon/events2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zerojargon/events2/teams","hooks_url":"https://api.github.com/repos/zerojargon/events2/hooks","issue_events_url":"https://api.github.com/repos/zerojargon/events2/issues/events{/number}","events_url":"https://api.github.com/repos/zerojargon/events2/events","assignees_url":"https://api.github.com/repos/zerojargon/events2/assignees{/user}","branches_url":"https://api.github.com/repos/zerojargon/events2/branches{/branch}","tags_url":"https://api.github.com/repos/zerojargon/events2/tags","blobs_url":"https://api.github.com/repos/zerojargon/events2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zerojargon/events2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zerojargon/events2/git/refs{/sha}","trees_url":"https://api.github.com/repos/zerojargon/events2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zerojargon/events2/statuses/{sha}","languages_url":"https://api.github.com/repos/zerojargon/events2/languages","stargazers_url":"https://api.github.com/repos/zerojargon/events2/stargazers","contributors_url":"https://api.github.com/repos/zerojargon/events2/contributors","subscribers_url":"https://api.github.com/repos/zerojargon/events2/subscribers","subscription_url":"https://api.github.com/repos/zerojargon/events2/subscription","commits_url":"https://api.github.com/repos/zerojargon/events2/commits{/sha}","git_commits_url":"https://api.github.com/repos/zerojargon/events2/git/commits{/sha}","comments_url":"https://api.github.com/repos/zerojargon/events2/comments{/number}","issue_comment_url":"https://api.github.com/repos/zerojargon/events2/issues/comments{/number}","contents_url":"https://api.github.com/repos/zerojargon/events2/contents/{+path}","compare_url":"https://api.github.com/repos/zerojargon/events2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zerojargon/events2/merges","archive_url":"https://api.github.com/repos/zerojargon/events2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zerojargon/events2/downloads","issues_url":"https://api.github.com/repos/zerojargon/events2/issues{/number}","pulls_url":"https://api.github.com/repos/zerojargon/events2/pulls{/number}","milestones_url":"https://api.github.com/repos/zerojargon/events2/milestones{/number}","notifications_url":"https://api.github.com/repos/zerojargon/events2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zerojargon/events2/labels{/name}","releases_url":"https://api.github.com/repos/zerojargon/events2/releases{/id}","deployments_url":"https://api.github.com/repos/zerojargon/events2/deployments","created_at":"2016-03-04T13:16:28Z","updated_at":"2016-04-15T21:13:22Z","pushed_at":"2016-05-17T21:04:45Z","git_url":"git://github.com/zerojargon/events2.git","ssh_url":"git@github.com:zerojargon/events2.git","clone_url":"https://github.com/zerojargon/events2.git","svn_url":"https://github.com/zerojargon/events2","homepage":null,"size":231,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"zerojargon:master","ref":"master","sha":"a375658f169b45113a2fa97830bb7fcbfa538f20","user":{"login":"zerojargon","id":11255328,"avatar_url":"https://avatars.githubusercontent.com/u/11255328?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojargon","html_url":"https://github.com/zerojargon","followers_url":"https://api.github.com/users/zerojargon/followers","following_url":"https://api.github.com/users/zerojargon/following{/other_user}","gists_url":"https://api.github.com/users/zerojargon/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojargon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojargon/subscriptions","organizations_url":"https://api.github.com/users/zerojargon/orgs","repos_url":"https://api.github.com/users/zerojargon/repos","events_url":"https://api.github.com/users/zerojargon/events{/privacy}","received_events_url":"https://api.github.com/users/zerojargon/received_events","type":"Organization","site_admin":false},"repo":{"id":53136589,"name":"events2","full_name":"zerojargon/events2","owner":{"login":"zerojargon","id":11255328,"avatar_url":"https://avatars.githubusercontent.com/u/11255328?v=3","gravatar_id":"","url":"https://api.github.com/users/zerojargon","html_url":"https://github.com/zerojargon","followers_url":"https://api.github.com/users/zerojargon/followers","following_url":"https://api.github.com/users/zerojargon/following{/other_user}","gists_url":"https://api.github.com/users/zerojargon/gists{/gist_id}","starred_url":"https://api.github.com/users/zerojargon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zerojargon/subscriptions","organizations_url":"https://api.github.com/users/zerojargon/orgs","repos_url":"https://api.github.com/users/zerojargon/repos","events_url":"https://api.github.com/users/zerojargon/events{/privacy}","received_events_url":"https://api.github.com/users/zerojargon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zerojargon/events2","description":"","fork":false,"url":"https://api.github.com/repos/zerojargon/events2","forks_url":"https://api.github.com/repos/zerojargon/events2/forks","keys_url":"https://api.github.com/repos/zerojargon/events2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zerojargon/events2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zerojargon/events2/teams","hooks_url":"https://api.github.com/repos/zerojargon/events2/hooks","issue_events_url":"https://api.github.com/repos/zerojargon/events2/issues/events{/number}","events_url":"https://api.github.com/repos/zerojargon/events2/events","assignees_url":"https://api.github.com/repos/zerojargon/events2/assignees{/user}","branches_url":"https://api.github.com/repos/zerojargon/events2/branches{/branch}","tags_url":"https://api.github.com/repos/zerojargon/events2/tags","blobs_url":"https://api.github.com/repos/zerojargon/events2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zerojargon/events2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zerojargon/events2/git/refs{/sha}","trees_url":"https://api.github.com/repos/zerojargon/events2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zerojargon/events2/statuses/{sha}","languages_url":"https://api.github.com/repos/zerojargon/events2/languages","stargazers_url":"https://api.github.com/repos/zerojargon/events2/stargazers","contributors_url":"https://api.github.com/repos/zerojargon/events2/contributors","subscribers_url":"https://api.github.com/repos/zerojargon/events2/subscribers","subscription_url":"https://api.github.com/repos/zerojargon/events2/subscription","commits_url":"https://api.github.com/repos/zerojargon/events2/commits{/sha}","git_commits_url":"https://api.github.com/repos/zerojargon/events2/git/commits{/sha}","comments_url":"https://api.github.com/repos/zerojargon/events2/comments{/number}","issue_comment_url":"https://api.github.com/repos/zerojargon/events2/issues/comments{/number}","contents_url":"https://api.github.com/repos/zerojargon/events2/contents/{+path}","compare_url":"https://api.github.com/repos/zerojargon/events2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zerojargon/events2/merges","archive_url":"https://api.github.com/repos/zerojargon/events2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zerojargon/events2/downloads","issues_url":"https://api.github.com/repos/zerojargon/events2/issues{/number}","pulls_url":"https://api.github.com/repos/zerojargon/events2/pulls{/number}","milestones_url":"https://api.github.com/repos/zerojargon/events2/milestones{/number}","notifications_url":"https://api.github.com/repos/zerojargon/events2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zerojargon/events2/labels{/name}","releases_url":"https://api.github.com/repos/zerojargon/events2/releases{/id}","deployments_url":"https://api.github.com/repos/zerojargon/events2/deployments","created_at":"2016-03-04T13:16:28Z","updated_at":"2016-04-15T21:13:22Z","pushed_at":"2016-05-17T21:04:45Z","git_url":"git://github.com/zerojargon/events2.git","ssh_url":"git@github.com:zerojargon/events2.git","clone_url":"https://github.com/zerojargon/events2.git","svn_url":"https://github.com/zerojargon/events2","homepage":null,"size":231,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zerojargon/events2/pulls/7"},"html":{"href":"https://github.com/zerojargon/events2/pull/7"},"issue":{"href":"https://api.github.com/repos/zerojargon/events2/issues/7"},"comments":{"href":"https://api.github.com/repos/zerojargon/events2/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/zerojargon/events2/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/zerojargon/events2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zerojargon/events2/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/zerojargon/events2/statuses/9b079cf7bccf299575acf2f2b906df3eee1737a3"}}}}