{"action":"created","comment":{"url":"https://api.github.com/repos/dharmaprotocol/plex/pulls/comments/183559666","pull_request_review_id":114581475,"id":183559666,"diff_hunk":"@@ -373,6 +426,42 @@ class ActiveDebtOrder extends React.Component<Props, State> {\n             );\n         }\n \n+        let actionButton = null;\n+        if (debtOrder.status === \"active\") {\n+            if (debtOrder.collateralReturnable) {\n+                actionButton = (\n+                    <ActionButton onClick={this.handleReturnCollateralButtonClicked}>","path":"src/modules/Dashboard/Debts/ActiveDebtOrder/ActiveDebtOrder.tsx","position":120,"original_position":120,"commit_id":"abb4ac8459470914edb6592cba110eb92da49eb3","original_commit_id":"abb4ac8459470914edb6592cba110eb92da49eb3","user":{"login":"graemecode","id":36094097,"avatar_url":"https://avatars2.githubusercontent.com/u/36094097?v=4","gravatar_id":"","url":"https://api.github.com/users/graemecode","html_url":"https://github.com/graemecode","followers_url":"https://api.github.com/users/graemecode/followers","following_url":"https://api.github.com/users/graemecode/following{/other_user}","gists_url":"https://api.github.com/users/graemecode/gists{/gist_id}","starred_url":"https://api.github.com/users/graemecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemecode/subscriptions","organizations_url":"https://api.github.com/users/graemecode/orgs","repos_url":"https://api.github.com/users/graemecode/repos","events_url":"https://api.github.com/users/graemecode/events{/privacy}","received_events_url":"https://api.github.com/users/graemecode/received_events","type":"User","site_admin":false},"body":"Not a blocker, but I'm not a fan of this kind of thing. Would prefer to see a cleaner: \r\n\r\n```jsx\r\n<CollateralActionButton collateralReturnable={collateralReturnable />\r\n```","created_at":"2018-04-23T22:46:44Z","updated_at":"2018-04-23T22:46:44Z","html_url":"https://github.com/dharmaprotocol/plex/pull/77#discussion_r183559666","pull_request_url":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dharmaprotocol/plex/pulls/comments/183559666"},"html":{"href":"https://github.com/dharmaprotocol/plex/pull/77#discussion_r183559666"},"pull_request":{"href":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77","id":183575300,"html_url":"https://github.com/dharmaprotocol/plex/pull/77","diff_url":"https://github.com/dharmaprotocol/plex/pull/77.diff","patch_url":"https://github.com/dharmaprotocol/plex/pull/77.patch","issue_url":"https://api.github.com/repos/dharmaprotocol/plex/issues/77","number":77,"state":"open","locked":false,"title":"Allow returning of collateral","user":{"login":"chrismin","id":9753941,"avatar_url":"https://avatars2.githubusercontent.com/u/9753941?v=4","gravatar_id":"","url":"https://api.github.com/users/chrismin","html_url":"https://github.com/chrismin","followers_url":"https://api.github.com/users/chrismin/followers","following_url":"https://api.github.com/users/chrismin/following{/other_user}","gists_url":"https://api.github.com/users/chrismin/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismin/subscriptions","organizations_url":"https://api.github.com/users/chrismin/orgs","repos_url":"https://api.github.com/users/chrismin/repos","events_url":"https://api.github.com/users/chrismin/events{/privacy}","received_events_url":"https://api.github.com/users/chrismin/received_events","type":"User","site_admin":false},"body":null,"created_at":"2018-04-23T22:33:13Z","updated_at":"2018-04-23T22:46:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5339bcea12b0a062dee650c72f0d2f7f972918d4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nadavhollander","id":3241822,"avatar_url":"https://avatars1.githubusercontent.com/u/3241822?v=4","gravatar_id":"","url":"https://api.github.com/users/nadavhollander","html_url":"https://github.com/nadavhollander","followers_url":"https://api.github.com/users/nadavhollander/followers","following_url":"https://api.github.com/users/nadavhollander/following{/other_user}","gists_url":"https://api.github.com/users/nadavhollander/gists{/gist_id}","starred_url":"https://api.github.com/users/nadavhollander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadavhollander/subscriptions","organizations_url":"https://api.github.com/users/nadavhollander/orgs","repos_url":"https://api.github.com/users/nadavhollander/repos","events_url":"https://api.github.com/users/nadavhollander/events{/privacy}","received_events_url":"https://api.github.com/users/nadavhollander/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":903705958,"url":"https://api.github.com/repos/dharmaprotocol/plex/labels/needs-review","name":"needs-review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77/commits","review_comments_url":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77/comments","review_comment_url":"https://api.github.com/repos/dharmaprotocol/plex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dharmaprotocol/plex/issues/77/comments","statuses_url":"https://api.github.com/repos/dharmaprotocol/plex/statuses/abb4ac8459470914edb6592cba110eb92da49eb3","head":{"label":"dharmaprotocol:cm/return-collateral","ref":"cm/return-collateral","sha":"abb4ac8459470914edb6592cba110eb92da49eb3","user":{"login":"dharmaprotocol","id":28667653,"avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"repo":{"id":119798623,"name":"plex","full_name":"dharmaprotocol/plex","owner":{"login":"dharmaprotocol","id":28667653,"avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dharmaprotocol/plex","description":"An Open-Source Tool For Borrowing and Lending Cryptoassets","fork":false,"url":"https://api.github.com/repos/dharmaprotocol/plex","forks_url":"https://api.github.com/repos/dharmaprotocol/plex/forks","keys_url":"https://api.github.com/repos/dharmaprotocol/plex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dharmaprotocol/plex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dharmaprotocol/plex/teams","hooks_url":"https://api.github.com/repos/dharmaprotocol/plex/hooks","issue_events_url":"https://api.github.com/repos/dharmaprotocol/plex/issues/events{/number}","events_url":"https://api.github.com/repos/dharmaprotocol/plex/events","assignees_url":"https://api.github.com/repos/dharmaprotocol/plex/assignees{/user}","branches_url":"https://api.github.com/repos/dharmaprotocol/plex/branches{/branch}","tags_url":"https://api.github.com/repos/dharmaprotocol/plex/tags","blobs_url":"https://api.github.com/repos/dharmaprotocol/plex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dharmaprotocol/plex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dharmaprotocol/plex/git/refs{/sha}","trees_url":"https://api.github.com/repos/dharmaprotocol/plex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dharmaprotocol/plex/statuses/{sha}","languages_url":"https://api.github.com/repos/dharmaprotocol/plex/languages","stargazers_url":"https://api.github.com/repos/dharmaprotocol/plex/stargazers","contributors_url":"https://api.github.com/repos/dharmaprotocol/plex/contributors","subscribers_url":"https://api.github.com/repos/dharmaprotocol/plex/subscribers","subscription_url":"https://api.github.com/repos/dharmaprotocol/plex/subscription","commits_url":"https://api.github.com/repos/dharmaprotocol/plex/commits{/sha}","git_commits_url":"https://api.github.com/repos/dharmaprotocol/plex/git/commits{/sha}","comments_url":"https://api.github.com/repos/dharmaprotocol/plex/comments{/number}","issue_comment_url":"https://api.github.com/repos/dharmaprotocol/plex/issues/comments{/number}","contents_url":"https://api.github.com/repos/dharmaprotocol/plex/contents/{+path}","compare_url":"https://api.github.com/repos/dharmaprotocol/plex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dharmaprotocol/plex/merges","archive_url":"https://api.github.com/repos/dharmaprotocol/plex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dharmaprotocol/plex/downloads","issues_url":"https://api.github.com/repos/dharmaprotocol/plex/issues{/number}","pulls_url":"https://api.github.com/repos/dharmaprotocol/plex/pulls{/number}","milestones_url":"https://api.github.com/repos/dharmaprotocol/plex/milestones{/number}","notifications_url":"https://api.github.com/repos/dharmaprotocol/plex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dharmaprotocol/plex/labels{/name}","releases_url":"https://api.github.com/repos/dharmaprotocol/plex/releases{/id}","deployments_url":"https://api.github.com/repos/dharmaprotocol/plex/deployments","created_at":"2018-02-01T07:18:48Z","updated_at":"2018-04-23T18:42:28Z","pushed_at":"2018-04-23T22:33:13Z","git_url":"git://github.com/dharmaprotocol/plex.git","ssh_url":"git@github.com:dharmaprotocol/plex.git","clone_url":"https://github.com/dharmaprotocol/plex.git","svn_url":"https://github.com/dharmaprotocol/plex","homepage":"https://plex.dharma.io","size":3845,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"dharmaprotocol:master","ref":"master","sha":"c28866fb3a521a6ae63219e5a257e0880d37e876","user":{"login":"dharmaprotocol","id":28667653,"avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"repo":{"id":119798623,"name":"plex","full_name":"dharmaprotocol/plex","owner":{"login":"dharmaprotocol","id":28667653,"avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dharmaprotocol/plex","description":"An Open-Source Tool For Borrowing and Lending Cryptoassets","fork":false,"url":"https://api.github.com/repos/dharmaprotocol/plex","forks_url":"https://api.github.com/repos/dharmaprotocol/plex/forks","keys_url":"https://api.github.com/repos/dharmaprotocol/plex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dharmaprotocol/plex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dharmaprotocol/plex/teams","hooks_url":"https://api.github.com/repos/dharmaprotocol/plex/hooks","issue_events_url":"https://api.github.com/repos/dharmaprotocol/plex/issues/events{/number}","events_url":"https://api.github.com/repos/dharmaprotocol/plex/events","assignees_url":"https://api.github.com/repos/dharmaprotocol/plex/assignees{/user}","branches_url":"https://api.github.com/repos/dharmaprotocol/plex/branches{/branch}","tags_url":"https://api.github.com/repos/dharmaprotocol/plex/tags","blobs_url":"https://api.github.com/repos/dharmaprotocol/plex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dharmaprotocol/plex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dharmaprotocol/plex/git/refs{/sha}","trees_url":"https://api.github.com/repos/dharmaprotocol/plex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dharmaprotocol/plex/statuses/{sha}","languages_url":"https://api.github.com/repos/dharmaprotocol/plex/languages","stargazers_url":"https://api.github.com/repos/dharmaprotocol/plex/stargazers","contributors_url":"https://api.github.com/repos/dharmaprotocol/plex/contributors","subscribers_url":"https://api.github.com/repos/dharmaprotocol/plex/subscribers","subscription_url":"https://api.github.com/repos/dharmaprotocol/plex/subscription","commits_url":"https://api.github.com/repos/dharmaprotocol/plex/commits{/sha}","git_commits_url":"https://api.github.com/repos/dharmaprotocol/plex/git/commits{/sha}","comments_url":"https://api.github.com/repos/dharmaprotocol/plex/comments{/number}","issue_comment_url":"https://api.github.com/repos/dharmaprotocol/plex/issues/comments{/number}","contents_url":"https://api.github.com/repos/dharmaprotocol/plex/contents/{+path}","compare_url":"https://api.github.com/repos/dharmaprotocol/plex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dharmaprotocol/plex/merges","archive_url":"https://api.github.com/repos/dharmaprotocol/plex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dharmaprotocol/plex/downloads","issues_url":"https://api.github.com/repos/dharmaprotocol/plex/issues{/number}","pulls_url":"https://api.github.com/repos/dharmaprotocol/plex/pulls{/number}","milestones_url":"https://api.github.com/repos/dharmaprotocol/plex/milestones{/number}","notifications_url":"https://api.github.com/repos/dharmaprotocol/plex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dharmaprotocol/plex/labels{/name}","releases_url":"https://api.github.com/repos/dharmaprotocol/plex/releases{/id}","deployments_url":"https://api.github.com/repos/dharmaprotocol/plex/deployments","created_at":"2018-02-01T07:18:48Z","updated_at":"2018-04-23T18:42:28Z","pushed_at":"2018-04-23T22:33:13Z","git_url":"git://github.com/dharmaprotocol/plex.git","ssh_url":"git@github.com:dharmaprotocol/plex.git","clone_url":"https://github.com/dharmaprotocol/plex.git","svn_url":"https://github.com/dharmaprotocol/plex","homepage":"https://plex.dharma.io","size":3845,"stargazers_count":6,"watchers_count":6,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77"},"html":{"href":"https://github.com/dharmaprotocol/plex/pull/77"},"issue":{"href":"https://api.github.com/repos/dharmaprotocol/plex/issues/77"},"comments":{"href":"https://api.github.com/repos/dharmaprotocol/plex/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/dharmaprotocol/plex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dharmaprotocol/plex/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/dharmaprotocol/plex/statuses/abb4ac8459470914edb6592cba110eb92da49eb3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"graemecode"}}