{"action":"created","comment":{"url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/comments/69800803","id":69800803,"diff_hunk":"@@ -0,0 +1,51 @@\n+import React, { Component, PropTypes } from 'react';\n+import { connect } from 'react-redux';\n+import { FormattedMessage, injectIntl } from 'react-intl';\n+import { CardControl } from 'cf-component-card';\n+import { Button } from 'cf-component-button';\n+import { CLOUDFLARE_UPGRADE_PAGE } from '../../constants/UrlPaths.js';\n+\n+class CustomCardControl extends Component {\n+    static propTypes = {\n+        name: PropTypes.string,\n+    };\n+\n+    render() {\n+        let { integrationName } = this.props;\n+\n+        // TODO: Add minimumPlan to lang folder \n+        let planList = {\n+            \"Free Website\": 0,\n+            \"Pro Plan\": 1,\n+            \"Biz Plan\": 2,\n+            \"Ent Plan\": 3\n+        };\n+\n+        var currentPlan = this.props.hasOwnProperty(\"currentPlan\") ? this.props.currentPlan : planList[\"Free Website\"];","path":"src/js/components/CustomCardControl/CustomCardControl.js","position":24,"original_position":24,"commit_id":"2db6a4e2073dc82cffd6ca674e24a05ecd81ea74","original_commit_id":"2db6a4e2073dc82cffd6ca674e24a05ecd81ea74","user":{"login":"jwineman","id":6947158,"avatar_url":"https://avatars.githubusercontent.com/u/6947158?v=3","gravatar_id":"","url":"https://api.github.com/users/jwineman","html_url":"https://github.com/jwineman","followers_url":"https://api.github.com/users/jwineman/followers","following_url":"https://api.github.com/users/jwineman/following{/other_user}","gists_url":"https://api.github.com/users/jwineman/gists{/gist_id}","starred_url":"https://api.github.com/users/jwineman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwineman/subscriptions","organizations_url":"https://api.github.com/users/jwineman/orgs","repos_url":"https://api.github.com/users/jwineman/repos","events_url":"https://api.github.com/users/jwineman/events{/privacy}","received_events_url":"https://api.github.com/users/jwineman/received_events","type":"User","site_admin":false},"body":"In stead of passing this as a prop lets get it from zonesReducer.  Create a selectors/zones.js with getPlan(zoneId, state) which returns the `id` from that plan JSON with activeZoneId as the zoneId.","created_at":"2016-07-06T19:58:34Z","updated_at":"2016-07-06T19:58:34Z","html_url":"https://github.com/cloudflare/CloudFlare-FrontEnd/pull/9#discussion_r69800803","pull_request_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/comments/69800803"},"html":{"href":"https://github.com/cloudflare/CloudFlare-FrontEnd/pull/9#discussion_r69800803"},"pull_request":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9","id":76303129,"html_url":"https://github.com/cloudflare/CloudFlare-FrontEnd/pull/9","diff_url":"https://github.com/cloudflare/CloudFlare-FrontEnd/pull/9.diff","patch_url":"https://github.com/cloudflare/CloudFlare-FrontEnd/pull/9.patch","issue_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/9","number":9,"state":"open","locked":false,"title":"Thellimist/pi 650","user":{"login":"thellimist","id":6690196,"avatar_url":"https://avatars.githubusercontent.com/u/6690196?v=3","gravatar_id":"","url":"https://api.github.com/users/thellimist","html_url":"https://github.com/thellimist","followers_url":"https://api.github.com/users/thellimist/followers","following_url":"https://api.github.com/users/thellimist/following{/other_user}","gists_url":"https://api.github.com/users/thellimist/gists{/gist_id}","starred_url":"https://api.github.com/users/thellimist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thellimist/subscriptions","organizations_url":"https://api.github.com/users/thellimist/orgs","repos_url":"https://api.github.com/users/thellimist/repos","events_url":"https://api.github.com/users/thellimist/events{/privacy}","received_events_url":"https://api.github.com/users/thellimist/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-05T16:24:59Z","updated_at":"2016-07-06T19:58:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3368ba9c4961163f2483b86a6aa8afe40aca2ba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9/commits","review_comments_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9/comments","review_comment_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/9/comments","statuses_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/statuses/2db6a4e2073dc82cffd6ca674e24a05ecd81ea74","head":{"label":"cloudflare:Thellimist/PI-650","ref":"Thellimist/PI-650","sha":"2db6a4e2073dc82cffd6ca674e24a05ecd81ea74","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":59214547,"name":"CloudFlare-FrontEnd","full_name":"cloudflare/CloudFlare-FrontEnd","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/CloudFlare-FrontEnd","description":"","fork":false,"url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd","forks_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/forks","keys_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/teams","hooks_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/events","assignees_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/tags","blobs_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/languages","stargazers_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/subscription","commits_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/merges","archive_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/downloads","issues_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/releases{/id}","deployments_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/deployments","created_at":"2016-05-19T14:33:52Z","updated_at":"2016-06-11T02:02:26Z","pushed_at":"2016-07-06T12:04:19Z","git_url":"git://github.com/cloudflare/CloudFlare-FrontEnd.git","ssh_url":"git@github.com:cloudflare/CloudFlare-FrontEnd.git","clone_url":"https://github.com/cloudflare/CloudFlare-FrontEnd.git","svn_url":"https://github.com/cloudflare/CloudFlare-FrontEnd","homepage":null,"size":1899,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"cloudflare:master","ref":"master","sha":"056a0b4ea424f513bd9d2025e2e53492feedcccb","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":59214547,"name":"CloudFlare-FrontEnd","full_name":"cloudflare/CloudFlare-FrontEnd","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/CloudFlare-FrontEnd","description":"","fork":false,"url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd","forks_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/forks","keys_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/teams","hooks_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/events","assignees_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/tags","blobs_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/languages","stargazers_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/subscription","commits_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/merges","archive_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/downloads","issues_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/releases{/id}","deployments_url":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/deployments","created_at":"2016-05-19T14:33:52Z","updated_at":"2016-06-11T02:02:26Z","pushed_at":"2016-07-06T12:04:19Z","git_url":"git://github.com/cloudflare/CloudFlare-FrontEnd.git","ssh_url":"git@github.com:cloudflare/CloudFlare-FrontEnd.git","clone_url":"https://github.com/cloudflare/CloudFlare-FrontEnd.git","svn_url":"https://github.com/cloudflare/CloudFlare-FrontEnd","homepage":null,"size":1899,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9"},"html":{"href":"https://github.com/cloudflare/CloudFlare-FrontEnd/pull/9"},"issue":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/9"},"comments":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/cloudflare/CloudFlare-FrontEnd/statuses/2db6a4e2073dc82cffd6ca674e24a05ecd81ea74"}}}}
{"actor":{"display_login":"jwineman"}}