{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/comments/36090066","id":36090066,"diff_hunk":"@@ -89,6 +89,32 @@ App.CuratedContentEditorItemComponent = Em.Component.extend(App.CuratedContentEd\n \t\t\tif (confirm('Are you sure about removing this item?')) {\n \t\t\t\tthis.sendAction('deleteItem');\n \t\t\t}\n+\t\t},\n+\n+\t\tfileUpload(files: any[]): void {\n+\t\t\tthis.showLoader();\n+\t\t\tApp.AddPhotoModel.load(null, null, files[0])\n+\t\t\t\t.then(function (photoModel: typeof App.AddPhotoModel) {\n+\t\t\t\t\treturn App.AddPhotoModel.upload(photoModel);\n+\t\t\t\t})\n+\t\t\t\t.then((data: any) => {\n+\t\t\t\t\tif (data && data.url) {","path":"front/scripts/main/components/CuratedContentEditorItemComponent.ts","position":13,"original_position":13,"commit_id":"78f26042e9c8d37540b090ef33330d91d6db7fc0","original_commit_id":"78f26042e9c8d37540b090ef33330d91d6db7fc0","user":{"login":"bognix","id":3473327,"avatar_url":"https://avatars.githubusercontent.com/u/3473327?v=3","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"@rogatty - I agree, but on the other hand I don't know the logic for addPhoto functionality. What if they don't need url?","created_at":"2015-08-03T14:30:04Z","updated_at":"2015-08-03T14:30:04Z","html_url":"https://github.com/Wikia/mercury/pull/1150#discussion_r36090066","pull_request_url":"https://api.github.com/repos/Wikia/mercury/pulls/1150","_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments/36090066"},"html":{"href":"https://github.com/Wikia/mercury/pull/1150#discussion_r36090066"},"pull_request":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1150"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/1150","id":41364017,"html_url":"https://github.com/Wikia/mercury/pull/1150","diff_url":"https://github.com/Wikia/mercury/pull/1150.diff","patch_url":"https://github.com/Wikia/mercury/pull/1150.patch","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/1150","number":1150,"state":"open","locked":false,"title":"Concf 741","user":{"login":"bognix","id":3473327,"avatar_url":"https://avatars.githubusercontent.com/u/3473327?v=3","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"/cc @inez @mari-mcmurtrie @hakubo @rogatty \r\n\r\nrelated PR: https://github.com/Wikia/app/pull/7978","created_at":"2015-07-31T17:53:03Z","updated_at":"2015-08-03T14:30:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6f25e109b9d0ad82984f1686efeba6c978ed9a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/mercury/pulls/1150/commits","review_comments_url":"https://api.github.com/repos/Wikia/mercury/pulls/1150/comments","review_comment_url":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/1150/comments","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/78f26042e9c8d37540b090ef33330d91d6db7fc0","head":{"label":"Wikia:CONCF-741","ref":"CONCF-741","sha":"78f26042e9c8d37540b090ef33330d91d6db7fc0","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-08-01T12:21:17Z","pushed_at":"2015-08-03T13:58:36Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":55939,"stargazers_count":11,"watchers_count":11,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":11,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"802d458cef41d012139c475826b45bbee52d80a3","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","created_at":"2014-02-10T21:44:25Z","updated_at":"2015-08-01T12:21:17Z","pushed_at":"2015-08-03T13:58:36Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":55939,"stargazers_count":11,"watchers_count":11,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":11,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1150"},"html":{"href":"https://github.com/Wikia/mercury/pull/1150"},"issue":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1150"},"comments":{"href":"https://api.github.com/repos/Wikia/mercury/issues/1150/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1150/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/1150/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/mercury/statuses/78f26042e9c8d37540b090ef33330d91d6db7fc0"}}}}