{"action":"created","comment":{"url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/comments/181000844","pull_request_review_id":111515844,"id":181000844,"diff_hunk":"@@ -0,0 +1,65 @@\n+import {JetView} from \"webix-jet\";\r\n+import {contacts} from \"models/contactsCollection\";\r\n+\r\n+export default class ContactsList extends JetView{\r\n+\tconfig(){\r\n+\t\t//const _ = this.app.getService(\"locale\")._;\r\n+\r\n+\t\tlet list = {\r\n+\t\t\tview: \"list\",\r\n+\t\t\tid: \"contactsList:list\",\r\n+\t\t\tselect: true,\r\n+\t\t\twidth: 300,\r\n+\t\t\ttype: {\r\n+\t\t\t\theight:65\r\n+\t\t\t},\r\n+\t\t\ttemplate: (obj)=>{\r\n+\t\t\t\tlet iconDiv = \"<div class='webix_icon fa-user-circle contact_title icon_style' ></div>\";\r\n+\t\t\t\tlet fullNameDiv = `<div class='contact_name'>${obj.FirstName} ${obj.LastName}</div>`;\r\n+\t\t\t\tlet companyDiv = `<div class='contact_company'>${obj.Company}</div>`;\r\n+\t\t\t\tlet emptyDiv = \"<br/>\";\r\n+\t\t\t\tif (obj.FirstName && obj.LastName && obj.Company)\r\n+\t\t\t\t\treturn `\r\n+\t\t\t\t\t${iconDiv}\r\n+\t\t\t\t\t<div class='contact_title'>\r\n+\t\t\t\t\t\t${fullNameDiv}\r\n+\t\t\t\t\t\t${companyDiv}\r\n+\t\t\t\t\t</div>`;\r\n+\t\t\t\tif (!obj.Company)\r\n+\t\t\t\t\treturn `\r\n+\t\t\t\t\t${iconDiv}\r\n+\t\t\t\t\t<div class='contact_title'>\r\n+\t\t\t\t\t\t${fullNameDiv}\r\n+\t\t\t\t\t\t${emptyDiv}\r\n+\t\t\t\t\t</div>`;\r\n+\t\t\t\tif (!obj.FirstName && !obj.LastName)\r\n+\t\t\t\t\treturn `\r\n+\t\t\t\t\t${iconDiv}\r\n+\t\t\t\t\t<div class='contact_title'>\r\n+\t\t\t\t\t\t${emptyDiv}\r\n+\t\t\t\t\t\t${companyDiv}\r\n+\t\t\t\t\t</div>`;\r\n+\t\t\t\tif (!obj.FirstName && !obj.LastName && !obj.Company)\r\n+\t\t\t\t\treturn `${iconDiv}`;\r\n+\t\t\t},\r\n+\t\t\ton:{\r\n+\t\t\t\tonAfterSelect:(id) =>{\r\n+\t\t\t\t\tthis.setParam(\"id\", id, true);\r","path":"sources/views/contactsList.js","position":47,"original_position":47,"commit_id":"e0e2b7395908bb2fd63ba5f13d0cf25d8e87369d","original_commit_id":"e0e2b7395908bb2fd63ba5f13d0cf25d8e87369d","user":{"login":"Zwillinge","id":2278891,"avatar_url":"https://avatars0.githubusercontent.com/u/2278891?v=4","gravatar_id":"","url":"https://api.github.com/users/Zwillinge","html_url":"https://github.com/Zwillinge","followers_url":"https://api.github.com/users/Zwillinge/followers","following_url":"https://api.github.com/users/Zwillinge/following{/other_user}","gists_url":"https://api.github.com/users/Zwillinge/gists{/gist_id}","starred_url":"https://api.github.com/users/Zwillinge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zwillinge/subscriptions","organizations_url":"https://api.github.com/users/Zwillinge/orgs","repos_url":"https://api.github.com/users/Zwillinge/repos","events_url":"https://api.github.com/users/Zwillinge/events{/privacy}","received_events_url":"https://api.github.com/users/Zwillinge/received_events","type":"User","site_admin":false},"body":"событие или параметр? надо определиться и оставить что-то одно. скорее параметр, т.к. нам надо сохранить состояние приложения при перезагрузке","created_at":"2018-04-12T08:23:43Z","updated_at":"2018-04-12T08:35:02Z","html_url":"https://github.com/VeraOrekh/Webix-Project/pull/1#discussion_r181000844","pull_request_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/comments/181000844"},"html":{"href":"https://github.com/VeraOrekh/Webix-Project/pull/1#discussion_r181000844"},"pull_request":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1","id":181074101,"html_url":"https://github.com/VeraOrekh/Webix-Project/pull/1","diff_url":"https://github.com/VeraOrekh/Webix-Project/pull/1.diff","patch_url":"https://github.com/VeraOrekh/Webix-Project/pull/1.patch","issue_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/1","number":1,"state":"open","locked":false,"title":"Stage 1","user":{"login":"VeraOrekh","id":16069664,"avatar_url":"https://avatars2.githubusercontent.com/u/16069664?v=4","gravatar_id":"","url":"https://api.github.com/users/VeraOrekh","html_url":"https://github.com/VeraOrekh","followers_url":"https://api.github.com/users/VeraOrekh/followers","following_url":"https://api.github.com/users/VeraOrekh/following{/other_user}","gists_url":"https://api.github.com/users/VeraOrekh/gists{/gist_id}","starred_url":"https://api.github.com/users/VeraOrekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeraOrekh/subscriptions","organizations_url":"https://api.github.com/users/VeraOrekh/orgs","repos_url":"https://api.github.com/users/VeraOrekh/repos","events_url":"https://api.github.com/users/VeraOrekh/events{/privacy}","received_events_url":"https://api.github.com/users/VeraOrekh/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-12T02:21:24Z","updated_at":"2018-04-12T08:35:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae2046e33265a944121d809e8027822d16c90ed9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1/commits","review_comments_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1/comments","review_comment_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/1/comments","statuses_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/statuses/e0e2b7395908bb2fd63ba5f13d0cf25d8e87369d","head":{"label":"VeraOrekh:Stage-1","ref":"Stage-1","sha":"e0e2b7395908bb2fd63ba5f13d0cf25d8e87369d","user":{"login":"VeraOrekh","id":16069664,"avatar_url":"https://avatars2.githubusercontent.com/u/16069664?v=4","gravatar_id":"","url":"https://api.github.com/users/VeraOrekh","html_url":"https://github.com/VeraOrekh","followers_url":"https://api.github.com/users/VeraOrekh/followers","following_url":"https://api.github.com/users/VeraOrekh/following{/other_user}","gists_url":"https://api.github.com/users/VeraOrekh/gists{/gist_id}","starred_url":"https://api.github.com/users/VeraOrekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeraOrekh/subscriptions","organizations_url":"https://api.github.com/users/VeraOrekh/orgs","repos_url":"https://api.github.com/users/VeraOrekh/repos","events_url":"https://api.github.com/users/VeraOrekh/events{/privacy}","received_events_url":"https://api.github.com/users/VeraOrekh/received_events","type":"User","site_admin":false},"repo":{"id":129176884,"name":"Webix-Project","full_name":"VeraOrekh/Webix-Project","owner":{"login":"VeraOrekh","id":16069664,"avatar_url":"https://avatars2.githubusercontent.com/u/16069664?v=4","gravatar_id":"","url":"https://api.github.com/users/VeraOrekh","html_url":"https://github.com/VeraOrekh","followers_url":"https://api.github.com/users/VeraOrekh/followers","following_url":"https://api.github.com/users/VeraOrekh/following{/other_user}","gists_url":"https://api.github.com/users/VeraOrekh/gists{/gist_id}","starred_url":"https://api.github.com/users/VeraOrekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeraOrekh/subscriptions","organizations_url":"https://api.github.com/users/VeraOrekh/orgs","repos_url":"https://api.github.com/users/VeraOrekh/repos","events_url":"https://api.github.com/users/VeraOrekh/events{/privacy}","received_events_url":"https://api.github.com/users/VeraOrekh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VeraOrekh/Webix-Project","description":null,"fork":false,"url":"https://api.github.com/repos/VeraOrekh/Webix-Project","forks_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/forks","keys_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/teams","hooks_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/hooks","issue_events_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/events{/number}","events_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/events","assignees_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/assignees{/user}","branches_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/branches{/branch}","tags_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/tags","blobs_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/languages","stargazers_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/stargazers","contributors_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/contributors","subscribers_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/subscribers","subscription_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/subscription","commits_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/contents/{+path}","compare_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/merges","archive_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/downloads","issues_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues{/number}","pulls_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/labels{/name}","releases_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/releases{/id}","deployments_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/deployments","created_at":"2018-04-12T01:46:07Z","updated_at":"2018-04-12T01:46:10Z","pushed_at":"2018-04-12T02:21:25Z","git_url":"git://github.com/VeraOrekh/Webix-Project.git","ssh_url":"git@github.com:VeraOrekh/Webix-Project.git","clone_url":"https://github.com/VeraOrekh/Webix-Project.git","svn_url":"https://github.com/VeraOrekh/Webix-Project","homepage":null,"size":116,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"VeraOrekh:master","ref":"master","sha":"1a948055f47e82e1aca874f94fc0379b152052ea","user":{"login":"VeraOrekh","id":16069664,"avatar_url":"https://avatars2.githubusercontent.com/u/16069664?v=4","gravatar_id":"","url":"https://api.github.com/users/VeraOrekh","html_url":"https://github.com/VeraOrekh","followers_url":"https://api.github.com/users/VeraOrekh/followers","following_url":"https://api.github.com/users/VeraOrekh/following{/other_user}","gists_url":"https://api.github.com/users/VeraOrekh/gists{/gist_id}","starred_url":"https://api.github.com/users/VeraOrekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeraOrekh/subscriptions","organizations_url":"https://api.github.com/users/VeraOrekh/orgs","repos_url":"https://api.github.com/users/VeraOrekh/repos","events_url":"https://api.github.com/users/VeraOrekh/events{/privacy}","received_events_url":"https://api.github.com/users/VeraOrekh/received_events","type":"User","site_admin":false},"repo":{"id":129176884,"name":"Webix-Project","full_name":"VeraOrekh/Webix-Project","owner":{"login":"VeraOrekh","id":16069664,"avatar_url":"https://avatars2.githubusercontent.com/u/16069664?v=4","gravatar_id":"","url":"https://api.github.com/users/VeraOrekh","html_url":"https://github.com/VeraOrekh","followers_url":"https://api.github.com/users/VeraOrekh/followers","following_url":"https://api.github.com/users/VeraOrekh/following{/other_user}","gists_url":"https://api.github.com/users/VeraOrekh/gists{/gist_id}","starred_url":"https://api.github.com/users/VeraOrekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeraOrekh/subscriptions","organizations_url":"https://api.github.com/users/VeraOrekh/orgs","repos_url":"https://api.github.com/users/VeraOrekh/repos","events_url":"https://api.github.com/users/VeraOrekh/events{/privacy}","received_events_url":"https://api.github.com/users/VeraOrekh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VeraOrekh/Webix-Project","description":null,"fork":false,"url":"https://api.github.com/repos/VeraOrekh/Webix-Project","forks_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/forks","keys_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/teams","hooks_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/hooks","issue_events_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/events{/number}","events_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/events","assignees_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/assignees{/user}","branches_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/branches{/branch}","tags_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/tags","blobs_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/statuses/{sha}","languages_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/languages","stargazers_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/stargazers","contributors_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/contributors","subscribers_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/subscribers","subscription_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/subscription","commits_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/contents/{+path}","compare_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/merges","archive_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/downloads","issues_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues{/number}","pulls_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls{/number}","milestones_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/milestones{/number}","notifications_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/labels{/name}","releases_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/releases{/id}","deployments_url":"https://api.github.com/repos/VeraOrekh/Webix-Project/deployments","created_at":"2018-04-12T01:46:07Z","updated_at":"2018-04-12T01:46:10Z","pushed_at":"2018-04-12T02:21:25Z","git_url":"git://github.com/VeraOrekh/Webix-Project.git","ssh_url":"git@github.com:VeraOrekh/Webix-Project.git","clone_url":"https://github.com/VeraOrekh/Webix-Project.git","svn_url":"https://github.com/VeraOrekh/Webix-Project","homepage":null,"size":116,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1"},"html":{"href":"https://github.com/VeraOrekh/Webix-Project/pull/1"},"issue":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/1"},"comments":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/VeraOrekh/Webix-Project/statuses/e0e2b7395908bb2fd63ba5f13d0cf25d8e87369d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Zwillinge"}}