{"action":"created","comment":{"url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/comments/244372708","pull_request_review_id":188338575,"id":244372708,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDM3MjcwOA==","diff_hunk":"@@ -4,25 +4,60 @@ import React from 'react'\n \n import JRaisedButton from 'components/base/JRaisedButton'\n import checkMnemonicType from 'utils/wallets/checkMnemonicType'\n+import { Link } from 'react-router'\n \n type Props = {|\n-  +onSendAssetClick: () => void,\n   +isReadOnly: boolean,\n   +type: WalletType,\n |}\n \n-function MenuPanelMainAction({ isReadOnly, type, onSendAssetClick }: Props) {\n-  const readOnlyLabel: string = checkMnemonicType(type) ? 'Add mnemonic' : 'Add private key'\n+function MenuPanelMainAction({ isReadOnly, type }: Props) {\n+  const isMnemonic = checkMnemonicType(type)\n+\n+  if (isReadOnly && isMnemonic) {\n+    return (\n+      <Link\n+        className='menu-panel-main-action'\n+        to='/verify'\n+      >\n+        <JRaisedButton\n+          onClick={null}\n+          label='Add private key'\n+          labelColor='dark'\n+          color='white'\n+        />\n+      </Link>\n+    )\n+  }\n+\n+  if (isReadOnly && !isMnemonic) {","path":"src/components/MenuPanel/MainAction/MainAction.js","position":33,"original_position":33,"commit_id":"7a6bf08e0e264834a5e1ccea069c4e4e028bcc78","original_commit_id":"7a6bf08e0e264834a5e1ccea069c4e4e028bcc78","user":{"login":"stcherenkov","id":1773729,"node_id":"MDQ6VXNlcjE3NzM3Mjk=","avatar_url":"https://avatars0.githubusercontent.com/u/1773729?v=4","gravatar_id":"","url":"https://api.github.com/users/stcherenkov","html_url":"https://github.com/stcherenkov","followers_url":"https://api.github.com/users/stcherenkov/followers","following_url":"https://api.github.com/users/stcherenkov/following{/other_user}","gists_url":"https://api.github.com/users/stcherenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/stcherenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcherenkov/subscriptions","organizations_url":"https://api.github.com/users/stcherenkov/orgs","repos_url":"https://api.github.com/users/stcherenkov/repos","events_url":"https://api.github.com/users/stcherenkov/events{/privacy}","received_events_url":"https://api.github.com/users/stcherenkov/received_events","type":"User","site_admin":false},"body":"I think, there is no general rule here","created_at":"2018-12-28T17:47:36Z","updated_at":"2018-12-28T17:47:37Z","html_url":"https://github.com/jibrelnetwork/jwallet-web/pull/485#discussion_r244372708","pull_request_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/comments/244372708"},"html":{"href":"https://github.com/jibrelnetwork/jwallet-web/pull/485#discussion_r244372708"},"pull_request":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485"}},"in_reply_to_id":244369284},"pull_request":{"url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485","id":241367453,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMzY3NDUz","html_url":"https://github.com/jibrelnetwork/jwallet-web/pull/485","diff_url":"https://github.com/jibrelnetwork/jwallet-web/pull/485.diff","patch_url":"https://github.com/jibrelnetwork/jwallet-web/pull/485.patch","issue_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/485","number":485,"state":"open","locked":false,"title":"JWWEB-403: main action goes to page specific to current wallet","user":{"login":"stcherenkov","id":1773729,"node_id":"MDQ6VXNlcjE3NzM3Mjk=","avatar_url":"https://avatars0.githubusercontent.com/u/1773729?v=4","gravatar_id":"","url":"https://api.github.com/users/stcherenkov","html_url":"https://github.com/stcherenkov","followers_url":"https://api.github.com/users/stcherenkov/followers","following_url":"https://api.github.com/users/stcherenkov/following{/other_user}","gists_url":"https://api.github.com/users/stcherenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/stcherenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcherenkov/subscriptions","organizations_url":"https://api.github.com/users/stcherenkov/orgs","repos_url":"https://api.github.com/users/stcherenkov/repos","events_url":"https://api.github.com/users/stcherenkov/events{/privacy}","received_events_url":"https://api.github.com/users/stcherenkov/received_events","type":"User","site_admin":false},"body":"Sorry for bad commit names :(\r\n\r\nThe second one is actually MainAction fix, dunno where out git took this message","created_at":"2018-12-28T17:14:55Z","updated_at":"2018-12-28T17:47:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"967b7a09236e9e185f6a5c6141d3998a372836e5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Creepypoke","id":2114572,"node_id":"MDQ6VXNlcjIxMTQ1NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/2114572?v=4","gravatar_id":"","url":"https://api.github.com/users/Creepypoke","html_url":"https://github.com/Creepypoke","followers_url":"https://api.github.com/users/Creepypoke/followers","following_url":"https://api.github.com/users/Creepypoke/following{/other_user}","gists_url":"https://api.github.com/users/Creepypoke/gists{/gist_id}","starred_url":"https://api.github.com/users/Creepypoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Creepypoke/subscriptions","organizations_url":"https://api.github.com/users/Creepypoke/orgs","repos_url":"https://api.github.com/users/Creepypoke/repos","events_url":"https://api.github.com/users/Creepypoke/events{/privacy}","received_events_url":"https://api.github.com/users/Creepypoke/received_events","type":"User","site_admin":false},{"login":"Dragonesis","id":12426595,"node_id":"MDQ6VXNlcjEyNDI2NTk1","avatar_url":"https://avatars2.githubusercontent.com/u/12426595?v=4","gravatar_id":"","url":"https://api.github.com/users/Dragonesis","html_url":"https://github.com/Dragonesis","followers_url":"https://api.github.com/users/Dragonesis/followers","following_url":"https://api.github.com/users/Dragonesis/following{/other_user}","gists_url":"https://api.github.com/users/Dragonesis/gists{/gist_id}","starred_url":"https://api.github.com/users/Dragonesis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dragonesis/subscriptions","organizations_url":"https://api.github.com/users/Dragonesis/orgs","repos_url":"https://api.github.com/users/Dragonesis/repos","events_url":"https://api.github.com/users/Dragonesis/events{/privacy}","received_events_url":"https://api.github.com/users/Dragonesis/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485/commits","review_comments_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485/comments","review_comment_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/485/comments","statuses_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/statuses/7a6bf08e0e264834a5e1ccea069c4e4e028bcc78","head":{"label":"jibrelnetwork:feature/primary-button-link","ref":"feature/primary-button-link","sha":"7a6bf08e0e264834a5e1ccea069c4e4e028bcc78","user":{"login":"jibrelnetwork","id":29154170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0MTcw","avatar_url":"https://avatars1.githubusercontent.com/u/29154170?v=4","gravatar_id":"","url":"https://api.github.com/users/jibrelnetwork","html_url":"https://github.com/jibrelnetwork","followers_url":"https://api.github.com/users/jibrelnetwork/followers","following_url":"https://api.github.com/users/jibrelnetwork/following{/other_user}","gists_url":"https://api.github.com/users/jibrelnetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/jibrelnetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibrelnetwork/subscriptions","organizations_url":"https://api.github.com/users/jibrelnetwork/orgs","repos_url":"https://api.github.com/users/jibrelnetwork/repos","events_url":"https://api.github.com/users/jibrelnetwork/events{/privacy}","received_events_url":"https://api.github.com/users/jibrelnetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":100784971,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA3ODQ5NzE=","name":"jwallet-web","full_name":"jibrelnetwork/jwallet-web","private":false,"owner":{"login":"jibrelnetwork","id":29154170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0MTcw","avatar_url":"https://avatars1.githubusercontent.com/u/29154170?v=4","gravatar_id":"","url":"https://api.github.com/users/jibrelnetwork","html_url":"https://github.com/jibrelnetwork","followers_url":"https://api.github.com/users/jibrelnetwork/followers","following_url":"https://api.github.com/users/jibrelnetwork/following{/other_user}","gists_url":"https://api.github.com/users/jibrelnetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/jibrelnetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibrelnetwork/subscriptions","organizations_url":"https://api.github.com/users/jibrelnetwork/orgs","repos_url":"https://api.github.com/users/jibrelnetwork/repos","events_url":"https://api.github.com/users/jibrelnetwork/events{/privacy}","received_events_url":"https://api.github.com/users/jibrelnetwork/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jibrelnetwork/jwallet-web","description":"Web version of jWallet","fork":false,"url":"https://api.github.com/repos/jibrelnetwork/jwallet-web","forks_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/forks","keys_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/teams","hooks_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/hooks","issue_events_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/events{/number}","events_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/events","assignees_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/assignees{/user}","branches_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/branches{/branch}","tags_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/tags","blobs_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/statuses/{sha}","languages_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/languages","stargazers_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/stargazers","contributors_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/contributors","subscribers_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/subscribers","subscription_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/subscription","commits_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/contents/{+path}","compare_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/merges","archive_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/downloads","issues_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues{/number}","pulls_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls{/number}","milestones_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/milestones{/number}","notifications_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/labels{/name}","releases_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/releases{/id}","deployments_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/deployments","created_at":"2017-08-19T09:43:50Z","updated_at":"2018-11-30T13:33:34Z","pushed_at":"2018-12-28T17:21:39Z","git_url":"git://github.com/jibrelnetwork/jwallet-web.git","ssh_url":"git@github.com:jibrelnetwork/jwallet-web.git","clone_url":"https://github.com/jibrelnetwork/jwallet-web.git","svn_url":"https://github.com/jibrelnetwork/jwallet-web","homepage":"https://jwallet.network","size":15004,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":7,"open_issues":4,"watchers":19,"default_branch":"master"}},"base":{"label":"jibrelnetwork:develop","ref":"develop","sha":"46f4a6c013e4be1db6ca9bc070cdf96264c78237","user":{"login":"jibrelnetwork","id":29154170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0MTcw","avatar_url":"https://avatars1.githubusercontent.com/u/29154170?v=4","gravatar_id":"","url":"https://api.github.com/users/jibrelnetwork","html_url":"https://github.com/jibrelnetwork","followers_url":"https://api.github.com/users/jibrelnetwork/followers","following_url":"https://api.github.com/users/jibrelnetwork/following{/other_user}","gists_url":"https://api.github.com/users/jibrelnetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/jibrelnetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibrelnetwork/subscriptions","organizations_url":"https://api.github.com/users/jibrelnetwork/orgs","repos_url":"https://api.github.com/users/jibrelnetwork/repos","events_url":"https://api.github.com/users/jibrelnetwork/events{/privacy}","received_events_url":"https://api.github.com/users/jibrelnetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":100784971,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA3ODQ5NzE=","name":"jwallet-web","full_name":"jibrelnetwork/jwallet-web","private":false,"owner":{"login":"jibrelnetwork","id":29154170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0MTcw","avatar_url":"https://avatars1.githubusercontent.com/u/29154170?v=4","gravatar_id":"","url":"https://api.github.com/users/jibrelnetwork","html_url":"https://github.com/jibrelnetwork","followers_url":"https://api.github.com/users/jibrelnetwork/followers","following_url":"https://api.github.com/users/jibrelnetwork/following{/other_user}","gists_url":"https://api.github.com/users/jibrelnetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/jibrelnetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jibrelnetwork/subscriptions","organizations_url":"https://api.github.com/users/jibrelnetwork/orgs","repos_url":"https://api.github.com/users/jibrelnetwork/repos","events_url":"https://api.github.com/users/jibrelnetwork/events{/privacy}","received_events_url":"https://api.github.com/users/jibrelnetwork/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/jibrelnetwork/jwallet-web","description":"Web version of jWallet","fork":false,"url":"https://api.github.com/repos/jibrelnetwork/jwallet-web","forks_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/forks","keys_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/teams","hooks_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/hooks","issue_events_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/events{/number}","events_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/events","assignees_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/assignees{/user}","branches_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/branches{/branch}","tags_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/tags","blobs_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/statuses/{sha}","languages_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/languages","stargazers_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/stargazers","contributors_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/contributors","subscribers_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/subscribers","subscription_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/subscription","commits_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/contents/{+path}","compare_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/merges","archive_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/downloads","issues_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues{/number}","pulls_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls{/number}","milestones_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/milestones{/number}","notifications_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/labels{/name}","releases_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/releases{/id}","deployments_url":"https://api.github.com/repos/jibrelnetwork/jwallet-web/deployments","created_at":"2017-08-19T09:43:50Z","updated_at":"2018-11-30T13:33:34Z","pushed_at":"2018-12-28T17:21:39Z","git_url":"git://github.com/jibrelnetwork/jwallet-web.git","ssh_url":"git@github.com:jibrelnetwork/jwallet-web.git","clone_url":"https://github.com/jibrelnetwork/jwallet-web.git","svn_url":"https://github.com/jibrelnetwork/jwallet-web","homepage":"https://jwallet.network","size":15004,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":7,"open_issues":4,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485"},"html":{"href":"https://github.com/jibrelnetwork/jwallet-web/pull/485"},"issue":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/485"},"comments":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/issues/485/comments"},"review_comments":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485/comments"},"review_comment":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/pulls/485/commits"},"statuses":{"href":"https://api.github.com/repos/jibrelnetwork/jwallet-web/statuses/7a6bf08e0e264834a5e1ccea069c4e4e028bcc78"}},"author_association":"NONE"}}
{"actor":{"display_login":"stcherenkov"}}