{"action":"created","comment":{"url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/comments/175902472","pull_request_review_id":105511654,"id":175902472,"diff_hunk":"@@ -0,0 +1,55 @@\n+import template from \"./confirm-dialog.html\";\n+import templateContent from \"./confirm-dialog-content.html\";\n+import { MDCDialog } from \"@material/dialog\";\n+\n+export class ConfirmDialogComponent {\n+  constructor(mountPoint, props) {\n+    this.mountPoint = mountPoint;\n+    this.props = props;\n+  }\n+\n+  showDialog(data) {\n+    this.showInfo(data);\n+    this.dialog.show();\n+  }\n+\n+  handleOkClick() {\n+    this.props.onOkClick(this.elem);\n+  }\n+\n+  querySelectors() {\n+    this.confirmDialog = this.mountPoint.querySelector(\".confirm-dialog\");\n+    this.confirmDialogContent = this.mountPoint.querySelector(\n+      \".confirm-dialog__content\"\n+    );\n+  }\n+\n+  addInfo(type, name) {\n+    this.confirmDialogContent.innerHTML = templateContent({\n+      type: type,\n+      name: name\n+    });\n+  }\n+\n+  initMDC() {\n+    this.dialog = new MDCDialog(this.confirmDialog);\n+  }\n+\n+  addEventListeners() {\n+    this.dialog.listen(\"MDCDialog:accept\", this.handleOkClick.bind(this));\n+  }\n+\n+  showInfo(elem) {\n+    let elemDescription = elem.querySelector(\".table-transactions__td--desc\")","path":"src/components/confirm-dialog/confirm-dialog.js","position":43,"original_position":43,"commit_id":"ecd4cacde81caed96142502023ffa3fd07fb1435","original_commit_id":"ecd4cacde81caed96142502023ffa3fd07fb1435","user":{"login":"ihor7016","id":36405386,"avatar_url":"https://avatars1.githubusercontent.com/u/36405386?v=4","gravatar_id":"","url":"https://api.github.com/users/ihor7016","html_url":"https://github.com/ihor7016","followers_url":"https://api.github.com/users/ihor7016/followers","following_url":"https://api.github.com/users/ihor7016/following{/other_user}","gists_url":"https://api.github.com/users/ihor7016/gists{/gist_id}","starred_url":"https://api.github.com/users/ihor7016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihor7016/subscriptions","organizations_url":"https://api.github.com/users/ihor7016/orgs","repos_url":"https://api.github.com/users/ihor7016/repos","events_url":"https://api.github.com/users/ihor7016/events{/privacy}","received_events_url":"https://api.github.com/users/ihor7016/received_events","type":"User","site_admin":false},"body":"ok. It's reasonable -- but you should do this in parent component","created_at":"2018-03-20T19:56:17Z","updated_at":"2018-03-20T19:56:17Z","html_url":"https://github.com/ihor7016/buxy-vanilla/pull/21#discussion_r175902472","pull_request_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/comments/175902472"},"html":{"href":"https://github.com/ihor7016/buxy-vanilla/pull/21#discussion_r175902472"},"pull_request":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21"}},"in_reply_to_id":175895456},"pull_request":{"url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21","id":175834868,"html_url":"https://github.com/ihor7016/buxy-vanilla/pull/21","diff_url":"https://github.com/ihor7016/buxy-vanilla/pull/21.diff","patch_url":"https://github.com/ihor7016/buxy-vanilla/pull/21.patch","issue_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/21","number":21,"state":"open","locked":false,"title":"[KHWEBA-9] confirm popup component","user":{"login":"Konstanty-Ivashchenko","id":5365203,"avatar_url":"https://avatars1.githubusercontent.com/u/5365203?v=4","gravatar_id":"","url":"https://api.github.com/users/Konstanty-Ivashchenko","html_url":"https://github.com/Konstanty-Ivashchenko","followers_url":"https://api.github.com/users/Konstanty-Ivashchenko/followers","following_url":"https://api.github.com/users/Konstanty-Ivashchenko/following{/other_user}","gists_url":"https://api.github.com/users/Konstanty-Ivashchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Konstanty-Ivashchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konstanty-Ivashchenko/subscriptions","organizations_url":"https://api.github.com/users/Konstanty-Ivashchenko/orgs","repos_url":"https://api.github.com/users/Konstanty-Ivashchenko/repos","events_url":"https://api.github.com/users/Konstanty-Ivashchenko/events{/privacy}","received_events_url":"https://api.github.com/users/Konstanty-Ivashchenko/received_events","type":"User","site_admin":false},"body":"![screencapture-localhost-8080-2018-03-19-20_50_51](https://user-images.githubusercontent.com/5365203/37615993-3fd20fb2-2bb7-11e8-8e80-deb80c9d1d84.png)\r\n","created_at":"2018-03-19T08:47:19Z","updated_at":"2018-03-20T19:56:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"383e7828ef4d7e9dbda6e6e5e9f25fb93bb7c130","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21/commits","review_comments_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21/comments","review_comment_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/21/comments","statuses_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/statuses/ecd4cacde81caed96142502023ffa3fd07fb1435","head":{"label":"ihor7016:khweba-9","ref":"khweba-9","sha":"ecd4cacde81caed96142502023ffa3fd07fb1435","user":{"login":"ihor7016","id":36405386,"avatar_url":"https://avatars1.githubusercontent.com/u/36405386?v=4","gravatar_id":"","url":"https://api.github.com/users/ihor7016","html_url":"https://github.com/ihor7016","followers_url":"https://api.github.com/users/ihor7016/followers","following_url":"https://api.github.com/users/ihor7016/following{/other_user}","gists_url":"https://api.github.com/users/ihor7016/gists{/gist_id}","starred_url":"https://api.github.com/users/ihor7016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihor7016/subscriptions","organizations_url":"https://api.github.com/users/ihor7016/orgs","repos_url":"https://api.github.com/users/ihor7016/repos","events_url":"https://api.github.com/users/ihor7016/events{/privacy}","received_events_url":"https://api.github.com/users/ihor7016/received_events","type":"User","site_admin":false},"repo":{"id":123901820,"name":"buxy-vanilla","full_name":"ihor7016/buxy-vanilla","owner":{"login":"ihor7016","id":36405386,"avatar_url":"https://avatars1.githubusercontent.com/u/36405386?v=4","gravatar_id":"","url":"https://api.github.com/users/ihor7016","html_url":"https://github.com/ihor7016","followers_url":"https://api.github.com/users/ihor7016/followers","following_url":"https://api.github.com/users/ihor7016/following{/other_user}","gists_url":"https://api.github.com/users/ihor7016/gists{/gist_id}","starred_url":"https://api.github.com/users/ihor7016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihor7016/subscriptions","organizations_url":"https://api.github.com/users/ihor7016/orgs","repos_url":"https://api.github.com/users/ihor7016/repos","events_url":"https://api.github.com/users/ihor7016/events{/privacy}","received_events_url":"https://api.github.com/users/ihor7016/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ihor7016/buxy-vanilla","description":"Simple finance tracking app","fork":false,"url":"https://api.github.com/repos/ihor7016/buxy-vanilla","forks_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/forks","keys_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/teams","hooks_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/hooks","issue_events_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/events{/number}","events_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/events","assignees_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/assignees{/user}","branches_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/branches{/branch}","tags_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/tags","blobs_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/refs{/sha}","trees_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/statuses/{sha}","languages_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/languages","stargazers_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/stargazers","contributors_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/contributors","subscribers_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/subscribers","subscription_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/subscription","commits_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/commits{/sha}","git_commits_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/commits{/sha}","comments_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/comments{/number}","issue_comment_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/comments{/number}","contents_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/contents/{+path}","compare_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/merges","archive_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/downloads","issues_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues{/number}","pulls_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls{/number}","milestones_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/milestones{/number}","notifications_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/labels{/name}","releases_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/releases{/id}","deployments_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/deployments","created_at":"2018-03-05T10:14:38Z","updated_at":"2018-03-20T19:44:17Z","pushed_at":"2018-03-20T19:44:16Z","git_url":"git://github.com/ihor7016/buxy-vanilla.git","ssh_url":"git@github.com:ihor7016/buxy-vanilla.git","clone_url":"https://github.com/ihor7016/buxy-vanilla.git","svn_url":"https://github.com/ihor7016/buxy-vanilla","homepage":"https://ihor7016.github.io/buxy-vanilla/","size":1352,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"ihor7016:master","ref":"master","sha":"a0060c1e340e9e9498f195965227082e22901db1","user":{"login":"ihor7016","id":36405386,"avatar_url":"https://avatars1.githubusercontent.com/u/36405386?v=4","gravatar_id":"","url":"https://api.github.com/users/ihor7016","html_url":"https://github.com/ihor7016","followers_url":"https://api.github.com/users/ihor7016/followers","following_url":"https://api.github.com/users/ihor7016/following{/other_user}","gists_url":"https://api.github.com/users/ihor7016/gists{/gist_id}","starred_url":"https://api.github.com/users/ihor7016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihor7016/subscriptions","organizations_url":"https://api.github.com/users/ihor7016/orgs","repos_url":"https://api.github.com/users/ihor7016/repos","events_url":"https://api.github.com/users/ihor7016/events{/privacy}","received_events_url":"https://api.github.com/users/ihor7016/received_events","type":"User","site_admin":false},"repo":{"id":123901820,"name":"buxy-vanilla","full_name":"ihor7016/buxy-vanilla","owner":{"login":"ihor7016","id":36405386,"avatar_url":"https://avatars1.githubusercontent.com/u/36405386?v=4","gravatar_id":"","url":"https://api.github.com/users/ihor7016","html_url":"https://github.com/ihor7016","followers_url":"https://api.github.com/users/ihor7016/followers","following_url":"https://api.github.com/users/ihor7016/following{/other_user}","gists_url":"https://api.github.com/users/ihor7016/gists{/gist_id}","starred_url":"https://api.github.com/users/ihor7016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihor7016/subscriptions","organizations_url":"https://api.github.com/users/ihor7016/orgs","repos_url":"https://api.github.com/users/ihor7016/repos","events_url":"https://api.github.com/users/ihor7016/events{/privacy}","received_events_url":"https://api.github.com/users/ihor7016/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ihor7016/buxy-vanilla","description":"Simple finance tracking app","fork":false,"url":"https://api.github.com/repos/ihor7016/buxy-vanilla","forks_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/forks","keys_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/teams","hooks_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/hooks","issue_events_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/events{/number}","events_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/events","assignees_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/assignees{/user}","branches_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/branches{/branch}","tags_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/tags","blobs_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/refs{/sha}","trees_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/statuses/{sha}","languages_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/languages","stargazers_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/stargazers","contributors_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/contributors","subscribers_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/subscribers","subscription_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/subscription","commits_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/commits{/sha}","git_commits_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/git/commits{/sha}","comments_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/comments{/number}","issue_comment_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/comments{/number}","contents_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/contents/{+path}","compare_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/merges","archive_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/downloads","issues_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues{/number}","pulls_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls{/number}","milestones_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/milestones{/number}","notifications_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/labels{/name}","releases_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/releases{/id}","deployments_url":"https://api.github.com/repos/ihor7016/buxy-vanilla/deployments","created_at":"2018-03-05T10:14:38Z","updated_at":"2018-03-20T19:44:17Z","pushed_at":"2018-03-20T19:44:16Z","git_url":"git://github.com/ihor7016/buxy-vanilla.git","ssh_url":"git@github.com:ihor7016/buxy-vanilla.git","clone_url":"https://github.com/ihor7016/buxy-vanilla.git","svn_url":"https://github.com/ihor7016/buxy-vanilla","homepage":"https://ihor7016.github.io/buxy-vanilla/","size":1352,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21"},"html":{"href":"https://github.com/ihor7016/buxy-vanilla/pull/21"},"issue":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/21"},"comments":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/ihor7016/buxy-vanilla/statuses/ecd4cacde81caed96142502023ffa3fd07fb1435"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ihor7016"}}