{"action":"created","comment":{"url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/comments/82408505","pull_request_review_id":3320200,"id":82408505,"diff_hunk":"@@ -0,0 +1,44 @@\n+import React, { Component } from 'react';\n+import _ from 'lodash';\n+\n+import HostingDialogDomainRow from './HostingDialogDomainRow';\n+\n+class HostingDialogDomainsList extends Component {\n+  /* eslint-disable no-useless-constructor */\n+  constructor(props) {\n+    super(props);\n+  }\n+\n+  componentDidUpdate(prevProps) {\n+    if (prevProps.domains.length < this.props.domains.length) {\n+      this.refs.hostingDialogDomainsList.scrollIntoView(false);\n+    }\n+  }\n+\n+  renderItems = () => {\n+    const { domains, handleAddNewDomain, handleChangeDomains, handleRemoveDomain } = this.props;\n+    const items = _.map((domains), (domain, index) => {\n+      const handleChangeCurrentDomain = (event, value) => handleChangeDomains(value, index);","path":"src/apps/Hosting/HostingDialogDomainsList.js","position":21,"original_position":21,"commit_id":"497f72d9a743cf2ac6a3cde29178ffc69638a838","original_commit_id":"497f72d9a743cf2ac6a3cde29178ffc69638a838","user":{"login":"wpasinski","id":8083871,"avatar_url":"https://avatars.githubusercontent.com/u/8083871?v=3","gravatar_id":"","url":"https://api.github.com/users/wpasinski","html_url":"https://github.com/wpasinski","followers_url":"https://api.github.com/users/wpasinski/followers","following_url":"https://api.github.com/users/wpasinski/following{/other_user}","gists_url":"https://api.github.com/users/wpasinski/gists{/gist_id}","starred_url":"https://api.github.com/users/wpasinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpasinski/subscriptions","organizations_url":"https://api.github.com/users/wpasinski/orgs","repos_url":"https://api.github.com/users/wpasinski/repos","events_url":"https://api.github.com/users/wpasinski/events{/privacy}","received_events_url":"https://api.github.com/users/wpasinski/received_events","type":"User","site_admin":false},"body":"separate method?","created_at":"2016-10-07T15:09:33Z","updated_at":"2016-10-07T15:09:33Z","html_url":"https://github.com/Syncano/syncano-dashboard/pull/19#discussion_r82408505","pull_request_url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/comments/82408505"},"html":{"href":"https://github.com/Syncano/syncano-dashboard/pull/19#discussion_r82408505"},"pull_request":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19","id":88423897,"html_url":"https://github.com/Syncano/syncano-dashboard/pull/19","diff_url":"https://github.com/Syncano/syncano-dashboard/pull/19.diff","patch_url":"https://github.com/Syncano/syncano-dashboard/pull/19.patch","issue_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/19","number":19,"state":"open","locked":false,"title":"[DASH-2244] Make domains field more intuitive","user":{"login":"Flixow","id":17015114,"avatar_url":"https://avatars.githubusercontent.com/u/17015114?v=3","gravatar_id":"","url":"https://api.github.com/users/Flixow","html_url":"https://github.com/Flixow","followers_url":"https://api.github.com/users/Flixow/followers","following_url":"https://api.github.com/users/Flixow/following{/other_user}","gists_url":"https://api.github.com/users/Flixow/gists{/gist_id}","starred_url":"https://api.github.com/users/Flixow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flixow/subscriptions","organizations_url":"https://api.github.com/users/Flixow/orgs","repos_url":"https://api.github.com/users/Flixow/repos","events_url":"https://api.github.com/users/Flixow/events{/privacy}","received_events_url":"https://api.github.com/users/Flixow/received_events","type":"User","site_admin":false},"body":"After add new domain list scrolls to bottom where is the newest domain.\r\n![image](https://cloud.githubusercontent.com/assets/17015114/19188716/eb2f6766-8c93-11e6-9111-6d2b9d035089.png)\r\n","created_at":"2016-10-07T11:43:34Z","updated_at":"2016-10-07T15:09:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1394de6e2e69b9e742d3c66c34a6bad59bd9b4f6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/19/comments","statuses_url":"https://api.github.com/repos/Syncano/syncano-dashboard/statuses/497f72d9a743cf2ac6a3cde29178ffc69638a838","head":{"label":"Syncano:DASH-2244","ref":"DASH-2244","sha":"497f72d9a743cf2ac6a3cde29178ffc69638a838","user":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"repo":{"id":70053575,"name":"syncano-dashboard","full_name":"Syncano/syncano-dashboard","owner":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Syncano/syncano-dashboard","description":"The Syncano Dashboard built with React.","fork":false,"url":"https://api.github.com/repos/Syncano/syncano-dashboard","forks_url":"https://api.github.com/repos/Syncano/syncano-dashboard/forks","keys_url":"https://api.github.com/repos/Syncano/syncano-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syncano/syncano-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syncano/syncano-dashboard/teams","hooks_url":"https://api.github.com/repos/Syncano/syncano-dashboard/hooks","issue_events_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/Syncano/syncano-dashboard/events","assignees_url":"https://api.github.com/repos/Syncano/syncano-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/Syncano/syncano-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/Syncano/syncano-dashboard/tags","blobs_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syncano/syncano-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/Syncano/syncano-dashboard/languages","stargazers_url":"https://api.github.com/repos/Syncano/syncano-dashboard/stargazers","contributors_url":"https://api.github.com/repos/Syncano/syncano-dashboard/contributors","subscribers_url":"https://api.github.com/repos/Syncano/syncano-dashboard/subscribers","subscription_url":"https://api.github.com/repos/Syncano/syncano-dashboard/subscription","commits_url":"https://api.github.com/repos/Syncano/syncano-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syncano/syncano-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syncano/syncano-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/Syncano/syncano-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syncano/syncano-dashboard/merges","archive_url":"https://api.github.com/repos/Syncano/syncano-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syncano/syncano-dashboard/downloads","issues_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/Syncano/syncano-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/Syncano/syncano-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syncano/syncano-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/Syncano/syncano-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/Syncano/syncano-dashboard/deployments","created_at":"2016-10-05T11:20:49Z","updated_at":"2016-10-07T14:38:14Z","pushed_at":"2016-10-07T14:42:58Z","git_url":"git://github.com/Syncano/syncano-dashboard.git","ssh_url":"git@github.com:Syncano/syncano-dashboard.git","clone_url":"https://github.com/Syncano/syncano-dashboard.git","svn_url":"https://github.com/Syncano/syncano-dashboard","homepage":"https://www.syncano.io","size":2980,"stargazers_count":44,"watchers_count":44,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":44,"default_branch":"devel"}},"base":{"label":"Syncano:devel","ref":"devel","sha":"ec1162e29a6042aa297d7357fdc17d84cd85374e","user":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"repo":{"id":70053575,"name":"syncano-dashboard","full_name":"Syncano/syncano-dashboard","owner":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Syncano/syncano-dashboard","description":"The Syncano Dashboard built with React.","fork":false,"url":"https://api.github.com/repos/Syncano/syncano-dashboard","forks_url":"https://api.github.com/repos/Syncano/syncano-dashboard/forks","keys_url":"https://api.github.com/repos/Syncano/syncano-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syncano/syncano-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syncano/syncano-dashboard/teams","hooks_url":"https://api.github.com/repos/Syncano/syncano-dashboard/hooks","issue_events_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/Syncano/syncano-dashboard/events","assignees_url":"https://api.github.com/repos/Syncano/syncano-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/Syncano/syncano-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/Syncano/syncano-dashboard/tags","blobs_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syncano/syncano-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/Syncano/syncano-dashboard/languages","stargazers_url":"https://api.github.com/repos/Syncano/syncano-dashboard/stargazers","contributors_url":"https://api.github.com/repos/Syncano/syncano-dashboard/contributors","subscribers_url":"https://api.github.com/repos/Syncano/syncano-dashboard/subscribers","subscription_url":"https://api.github.com/repos/Syncano/syncano-dashboard/subscription","commits_url":"https://api.github.com/repos/Syncano/syncano-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syncano/syncano-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syncano/syncano-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syncano/syncano-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/Syncano/syncano-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syncano/syncano-dashboard/merges","archive_url":"https://api.github.com/repos/Syncano/syncano-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syncano/syncano-dashboard/downloads","issues_url":"https://api.github.com/repos/Syncano/syncano-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/Syncano/syncano-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/Syncano/syncano-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syncano/syncano-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/Syncano/syncano-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/Syncano/syncano-dashboard/deployments","created_at":"2016-10-05T11:20:49Z","updated_at":"2016-10-07T14:38:14Z","pushed_at":"2016-10-07T14:42:58Z","git_url":"git://github.com/Syncano/syncano-dashboard.git","ssh_url":"git@github.com:Syncano/syncano-dashboard.git","clone_url":"https://github.com/Syncano/syncano-dashboard.git","svn_url":"https://github.com/Syncano/syncano-dashboard","homepage":"https://www.syncano.io","size":2980,"stargazers_count":44,"watchers_count":44,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":44,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19"},"html":{"href":"https://github.com/Syncano/syncano-dashboard/pull/19"},"issue":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/19"},"comments":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Syncano/syncano-dashboard/statuses/497f72d9a743cf2ac6a3cde29178ffc69638a838"}}}}
{"actor":{"display_login":"wpasinski"}}