{"action":"closed","number":217,"pull_request":{"url":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/217","id":53508762,"html_url":"https://github.com/tidepool-org/chrome-uploader/pull/217","diff_url":"https://github.com/tidepool-org/chrome-uploader/pull/217.diff","patch_url":"https://github.com/tidepool-org/chrome-uploader/pull/217.patch","issue_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues/217","number":217,"state":"closed","locked":false,"title":"Removed the 'Choose file' button, and added a (x) on Insulet uploads.","user":{"login":"creswick","id":257712,"avatar_url":"https://avatars.githubusercontent.com/u/257712?v=3","gravatar_id":"","url":"https://api.github.com/users/creswick","html_url":"https://github.com/creswick","followers_url":"https://api.github.com/users/creswick/followers","following_url":"https://api.github.com/users/creswick/following{/other_user}","gists_url":"https://api.github.com/users/creswick/gists{/gist_id}","starred_url":"https://api.github.com/users/creswick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creswick/subscriptions","organizations_url":"https://api.github.com/users/creswick/orgs","repos_url":"https://api.github.com/users/creswick/repos","events_url":"https://api.github.com/users/creswick/events{/privacy}","received_events_url":"https://api.github.com/users/creswick/received_events","type":"User","site_admin":false},"body":"I believe this patch fixes https://trello.com/c/P0TpowaC\r\nI've added some simple conditionals and styling to hide the 'choose file' button\r\nonce an ibf file has been selected in the uploader, as well as adding a 'delete'\r\nicon button next to the file name.  That button removes the file from the list and\r\ncauses the choose and upload buttons to return to their default state by virtue of\r\ntoggling the 'isBlockModeFileChosen' state flag on the Upload component.\r\n\r\nI have *not* tested that the proper file is uploaded to the server, but the current\r\nupload behavior should be the same as that of clicking the 'choose file' button\r\nmultiple times.\r\n\r\nHere's a screenshot of the change:\r\n![image](https://cloud.githubusercontent.com/assets/257712/11769137/1054f44c-a195-11e5-81b3-3ab23818899e.png)\r\n","created_at":"2015-12-13T20:29:40Z","updated_at":"2016-01-07T15:09:51Z","closed_at":"2016-01-07T15:09:51Z","merged_at":"2016-01-07T15:09:51Z","merge_commit_sha":"aa7a3875aa9b4648ea10359ee6e88a480a2144d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/217/commits","review_comments_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/217/comments","review_comment_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues/217/comments","statuses_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/statuses/39df7119d4c4029638f499352e0e6c3c292874e6","head":{"label":"creswick:master","ref":"master","sha":"39df7119d4c4029638f499352e0e6c3c292874e6","user":{"login":"creswick","id":257712,"avatar_url":"https://avatars.githubusercontent.com/u/257712?v=3","gravatar_id":"","url":"https://api.github.com/users/creswick","html_url":"https://github.com/creswick","followers_url":"https://api.github.com/users/creswick/followers","following_url":"https://api.github.com/users/creswick/following{/other_user}","gists_url":"https://api.github.com/users/creswick/gists{/gist_id}","starred_url":"https://api.github.com/users/creswick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creswick/subscriptions","organizations_url":"https://api.github.com/users/creswick/orgs","repos_url":"https://api.github.com/users/creswick/repos","events_url":"https://api.github.com/users/creswick/events{/privacy}","received_events_url":"https://api.github.com/users/creswick/received_events","type":"User","site_admin":false},"repo":{"id":46295186,"name":"chrome-uploader","full_name":"creswick/chrome-uploader","owner":{"login":"creswick","id":257712,"avatar_url":"https://avatars.githubusercontent.com/u/257712?v=3","gravatar_id":"","url":"https://api.github.com/users/creswick","html_url":"https://github.com/creswick","followers_url":"https://api.github.com/users/creswick/followers","following_url":"https://api.github.com/users/creswick/following{/other_user}","gists_url":"https://api.github.com/users/creswick/gists{/gist_id}","starred_url":"https://api.github.com/users/creswick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creswick/subscriptions","organizations_url":"https://api.github.com/users/creswick/orgs","repos_url":"https://api.github.com/users/creswick/repos","events_url":"https://api.github.com/users/creswick/events{/privacy}","received_events_url":"https://api.github.com/users/creswick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/creswick/chrome-uploader","description":"A Chrome app for uploading diabetes device data to Tidepool's backend","fork":true,"url":"https://api.github.com/repos/creswick/chrome-uploader","forks_url":"https://api.github.com/repos/creswick/chrome-uploader/forks","keys_url":"https://api.github.com/repos/creswick/chrome-uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/creswick/chrome-uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/creswick/chrome-uploader/teams","hooks_url":"https://api.github.com/repos/creswick/chrome-uploader/hooks","issue_events_url":"https://api.github.com/repos/creswick/chrome-uploader/issues/events{/number}","events_url":"https://api.github.com/repos/creswick/chrome-uploader/events","assignees_url":"https://api.github.com/repos/creswick/chrome-uploader/assignees{/user}","branches_url":"https://api.github.com/repos/creswick/chrome-uploader/branches{/branch}","tags_url":"https://api.github.com/repos/creswick/chrome-uploader/tags","blobs_url":"https://api.github.com/repos/creswick/chrome-uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/creswick/chrome-uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/creswick/chrome-uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/creswick/chrome-uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/creswick/chrome-uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/creswick/chrome-uploader/languages","stargazers_url":"https://api.github.com/repos/creswick/chrome-uploader/stargazers","contributors_url":"https://api.github.com/repos/creswick/chrome-uploader/contributors","subscribers_url":"https://api.github.com/repos/creswick/chrome-uploader/subscribers","subscription_url":"https://api.github.com/repos/creswick/chrome-uploader/subscription","commits_url":"https://api.github.com/repos/creswick/chrome-uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/creswick/chrome-uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/creswick/chrome-uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/creswick/chrome-uploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/creswick/chrome-uploader/contents/{+path}","compare_url":"https://api.github.com/repos/creswick/chrome-uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/creswick/chrome-uploader/merges","archive_url":"https://api.github.com/repos/creswick/chrome-uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/creswick/chrome-uploader/downloads","issues_url":"https://api.github.com/repos/creswick/chrome-uploader/issues{/number}","pulls_url":"https://api.github.com/repos/creswick/chrome-uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/creswick/chrome-uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/creswick/chrome-uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/creswick/chrome-uploader/labels{/name}","releases_url":"https://api.github.com/repos/creswick/chrome-uploader/releases{/id}","created_at":"2015-11-16T18:54:17Z","updated_at":"2015-11-16T18:54:18Z","pushed_at":"2015-12-14T19:20:13Z","git_url":"git://github.com/creswick/chrome-uploader.git","ssh_url":"git@github.com:creswick/chrome-uploader.git","clone_url":"https://github.com/creswick/chrome-uploader.git","svn_url":"https://github.com/creswick/chrome-uploader","homepage":"","size":3586,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tidepool-org:master","ref":"master","sha":"16a9da2fa8fa6690b7c884e15c5269a926f0da90","user":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"repo":{"id":20790599,"name":"chrome-uploader","full_name":"tidepool-org/chrome-uploader","owner":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tidepool-org/chrome-uploader","description":"A Chrome app for uploading diabetes device data to Tidepool's backend","fork":false,"url":"https://api.github.com/repos/tidepool-org/chrome-uploader","forks_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/forks","keys_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/teams","hooks_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/hooks","issue_events_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues/events{/number}","events_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/events","assignees_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/assignees{/user}","branches_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/branches{/branch}","tags_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/tags","blobs_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/statuses/{sha}","languages_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/languages","stargazers_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/stargazers","contributors_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/contributors","subscribers_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/subscribers","subscription_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/subscription","commits_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/contents/{+path}","compare_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/merges","archive_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/downloads","issues_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues{/number}","pulls_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls{/number}","milestones_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/milestones{/number}","notifications_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/labels{/name}","releases_url":"https://api.github.com/repos/tidepool-org/chrome-uploader/releases{/id}","created_at":"2014-06-13T03:12:49Z","updated_at":"2015-11-25T09:35:15Z","pushed_at":"2016-01-07T15:09:51Z","git_url":"git://github.com/tidepool-org/chrome-uploader.git","ssh_url":"git@github.com:tidepool-org/chrome-uploader.git","clone_url":"https://github.com/tidepool-org/chrome-uploader.git","svn_url":"https://github.com/tidepool-org/chrome-uploader","homepage":"","size":4527,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":7,"forks":16,"open_issues":7,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/217"},"html":{"href":"https://github.com/tidepool-org/chrome-uploader/pull/217"},"issue":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues/217"},"comments":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/issues/217/comments"},"review_comments":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/217/comments"},"review_comment":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/pulls/217/commits"},"statuses":{"href":"https://api.github.com/repos/tidepool-org/chrome-uploader/statuses/39df7119d4c4029638f499352e0e6c3c292874e6"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gniezen","id":418233,"avatar_url":"https://avatars.githubusercontent.com/u/418233?v=3","gravatar_id":"","url":"https://api.github.com/users/gniezen","html_url":"https://github.com/gniezen","followers_url":"https://api.github.com/users/gniezen/followers","following_url":"https://api.github.com/users/gniezen/following{/other_user}","gists_url":"https://api.github.com/users/gniezen/gists{/gist_id}","starred_url":"https://api.github.com/users/gniezen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gniezen/subscriptions","organizations_url":"https://api.github.com/users/gniezen/orgs","repos_url":"https://api.github.com/users/gniezen/repos","events_url":"https://api.github.com/users/gniezen/events{/privacy}","received_events_url":"https://api.github.com/users/gniezen/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":2,"additions":26,"deletions":5,"changed_files":2}}