{"action":"created","comment":{"url":"https://api.github.com/repos/folio-org/ui-orders/pulls/comments/234941339","pull_request_review_id":176644281,"id":234941339,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDk0MTMzOQ==","diff_hunk":"@@ -0,0 +1,67 @@\n+import React, { Component } from 'react';\n+import { Field, FieldArray } from 'redux-form';\n+import { Row, Col, Button, TextField } from '@folio/stripes/components';\n+\n+class MaterialTypesForm extends Component {\n+  constructor(props) {\n+    super(props);\n+    this.renderForm = this.renderForm.bind(this);\n+    this.renderSubForm = this.renderSubForm.bind(this);\n+  }\n+\n+  renderForm = ({ fields }) => {\n+    return (\n+      <Row>\n+        <Col xs={12}>\n+          {fields.length === 0 &&\n+            <Col xs={12}>\n+              <div><em>- Please Add Material Types -</em></div>\n+            </Col>\n+          }\n+          {fields.map(this.renderSubForm)}\n+        </Col>\n+        <Col xs={12} style={{ paddingTop: '10px' }}>\n+          <Button onClick={() => fields.push('')}>+ Add Material Type</Button>","path":"src/components/POLine/Item/MaterialTypesForm.js","position":24,"original_position":24,"commit_id":"09555ae49ede66745313fc6f4cb50b0a42cb503f","original_commit_id":"09555ae49ede66745313fc6f4cb50b0a42cb503f","user":{"login":"MaksymDryha","id":43514877,"node_id":"MDQ6VXNlcjQzNTE0ODc3","avatar_url":"https://avatars0.githubusercontent.com/u/43514877?v=4","gravatar_id":"","url":"https://api.github.com/users/MaksymDryha","html_url":"https://github.com/MaksymDryha","followers_url":"https://api.github.com/users/MaksymDryha/followers","following_url":"https://api.github.com/users/MaksymDryha/following{/other_user}","gists_url":"https://api.github.com/users/MaksymDryha/gists{/gist_id}","starred_url":"https://api.github.com/users/MaksymDryha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaksymDryha/subscriptions","organizations_url":"https://api.github.com/users/MaksymDryha/orgs","repos_url":"https://api.github.com/users/MaksymDryha/repos","events_url":"https://api.github.com/users/MaksymDryha/events{/privacy}","received_events_url":"https://api.github.com/users/MaksymDryha/received_events","type":"User","site_admin":false},"body":"The same about hardcoded strings here.\r\nAlso, as far as I know, it was decided to not use plus signs in buttons. @cherewaty, am I right? ","created_at":"2018-11-20T10:13:47Z","updated_at":"2018-11-20T10:18:47Z","html_url":"https://github.com/folio-org/ui-orders/pull/61#discussion_r234941339","pull_request_url":"https://api.github.com/repos/folio-org/ui-orders/pulls/61","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/folio-org/ui-orders/pulls/comments/234941339"},"html":{"href":"https://github.com/folio-org/ui-orders/pull/61#discussion_r234941339"},"pull_request":{"href":"https://api.github.com/repos/folio-org/ui-orders/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/folio-org/ui-orders/pulls/61","id":231473224,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNDczMjI0","html_url":"https://github.com/folio-org/ui-orders/pull/61","diff_url":"https://github.com/folio-org/ui-orders/pull/61.diff","patch_url":"https://github.com/folio-org/ui-orders/pull/61.patch","issue_url":"https://api.github.com/repos/folio-org/ui-orders/issues/61","number":61,"state":"open","locked":false,"title":"UIOR-43 Add Item Details accordion and associated fields","user":{"login":"AndreiShumski2","id":43407139,"node_id":"MDQ6VXNlcjQzNDA3MTM5","avatar_url":"https://avatars2.githubusercontent.com/u/43407139?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreiShumski2","html_url":"https://github.com/AndreiShumski2","followers_url":"https://api.github.com/users/AndreiShumski2/followers","following_url":"https://api.github.com/users/AndreiShumski2/following{/other_user}","gists_url":"https://api.github.com/users/AndreiShumski2/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiShumski2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiShumski2/subscriptions","organizations_url":"https://api.github.com/users/AndreiShumski2/orgs","repos_url":"https://api.github.com/users/AndreiShumski2/repos","events_url":"https://api.github.com/users/AndreiShumski2/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiShumski2/received_events","type":"User","site_admin":false},"body":"Add Item Details accordion and associated fields\r\n\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2018-11-16T09:55:15Z","updated_at":"2018-11-20T10:18:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa6572b1423337212b18808281b4f5973f6b9f59","assignee":{"login":"AndreiShumski2","id":43407139,"node_id":"MDQ6VXNlcjQzNDA3MTM5","avatar_url":"https://avatars2.githubusercontent.com/u/43407139?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreiShumski2","html_url":"https://github.com/AndreiShumski2","followers_url":"https://api.github.com/users/AndreiShumski2/followers","following_url":"https://api.github.com/users/AndreiShumski2/following{/other_user}","gists_url":"https://api.github.com/users/AndreiShumski2/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiShumski2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiShumski2/subscriptions","organizations_url":"https://api.github.com/users/AndreiShumski2/orgs","repos_url":"https://api.github.com/users/AndreiShumski2/repos","events_url":"https://api.github.com/users/AndreiShumski2/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiShumski2/received_events","type":"User","site_admin":false},"assignees":[{"login":"AndreiShumski2","id":43407139,"node_id":"MDQ6VXNlcjQzNDA3MTM5","avatar_url":"https://avatars2.githubusercontent.com/u/43407139?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreiShumski2","html_url":"https://github.com/AndreiShumski2","followers_url":"https://api.github.com/users/AndreiShumski2/followers","following_url":"https://api.github.com/users/AndreiShumski2/following{/other_user}","gists_url":"https://api.github.com/users/AndreiShumski2/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiShumski2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiShumski2/subscriptions","organizations_url":"https://api.github.com/users/AndreiShumski2/orgs","repos_url":"https://api.github.com/users/AndreiShumski2/repos","events_url":"https://api.github.com/users/AndreiShumski2/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiShumski2/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"bonthebeerman","id":240864,"node_id":"MDQ6VXNlcjI0MDg2NA==","avatar_url":"https://avatars0.githubusercontent.com/u/240864?v=4","gravatar_id":"","url":"https://api.github.com/users/bonthebeerman","html_url":"https://github.com/bonthebeerman","followers_url":"https://api.github.com/users/bonthebeerman/followers","following_url":"https://api.github.com/users/bonthebeerman/following{/other_user}","gists_url":"https://api.github.com/users/bonthebeerman/gists{/gist_id}","starred_url":"https://api.github.com/users/bonthebeerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonthebeerman/subscriptions","organizations_url":"https://api.github.com/users/bonthebeerman/orgs","repos_url":"https://api.github.com/users/bonthebeerman/repos","events_url":"https://api.github.com/users/bonthebeerman/events{/privacy}","received_events_url":"https://api.github.com/users/bonthebeerman/received_events","type":"User","site_admin":false},{"login":"craigmcnally","id":24814831,"node_id":"MDQ6VXNlcjI0ODE0ODMx","avatar_url":"https://avatars1.githubusercontent.com/u/24814831?v=4","gravatar_id":"","url":"https://api.github.com/users/craigmcnally","html_url":"https://github.com/craigmcnally","followers_url":"https://api.github.com/users/craigmcnally/followers","following_url":"https://api.github.com/users/craigmcnally/following{/other_user}","gists_url":"https://api.github.com/users/craigmcnally/gists{/gist_id}","starred_url":"https://api.github.com/users/craigmcnally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigmcnally/subscriptions","organizations_url":"https://api.github.com/users/craigmcnally/orgs","repos_url":"https://api.github.com/users/craigmcnally/repos","events_url":"https://api.github.com/users/craigmcnally/events{/privacy}","received_events_url":"https://api.github.com/users/craigmcnally/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/folio-org/ui-orders/pulls/61/commits","review_comments_url":"https://api.github.com/repos/folio-org/ui-orders/pulls/61/comments","review_comment_url":"https://api.github.com/repos/folio-org/ui-orders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/folio-org/ui-orders/issues/61/comments","statuses_url":"https://api.github.com/repos/folio-org/ui-orders/statuses/09555ae49ede66745313fc6f4cb50b0a42cb503f","head":{"label":"folio-org:UIOR-43-Add-Item-Details-accordion-and-associated-fields","ref":"UIOR-43-Add-Item-Details-accordion-and-associated-fields","sha":"09555ae49ede66745313fc6f4cb50b0a42cb503f","user":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"repo":{"id":132015947,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMTU5NDc=","name":"ui-orders","full_name":"folio-org/ui-orders","private":false,"owner":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/folio-org/ui-orders","description":null,"fork":false,"url":"https://api.github.com/repos/folio-org/ui-orders","forks_url":"https://api.github.com/repos/folio-org/ui-orders/forks","keys_url":"https://api.github.com/repos/folio-org/ui-orders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folio-org/ui-orders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folio-org/ui-orders/teams","hooks_url":"https://api.github.com/repos/folio-org/ui-orders/hooks","issue_events_url":"https://api.github.com/repos/folio-org/ui-orders/issues/events{/number}","events_url":"https://api.github.com/repos/folio-org/ui-orders/events","assignees_url":"https://api.github.com/repos/folio-org/ui-orders/assignees{/user}","branches_url":"https://api.github.com/repos/folio-org/ui-orders/branches{/branch}","tags_url":"https://api.github.com/repos/folio-org/ui-orders/tags","blobs_url":"https://api.github.com/repos/folio-org/ui-orders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folio-org/ui-orders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folio-org/ui-orders/git/refs{/sha}","trees_url":"https://api.github.com/repos/folio-org/ui-orders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folio-org/ui-orders/statuses/{sha}","languages_url":"https://api.github.com/repos/folio-org/ui-orders/languages","stargazers_url":"https://api.github.com/repos/folio-org/ui-orders/stargazers","contributors_url":"https://api.github.com/repos/folio-org/ui-orders/contributors","subscribers_url":"https://api.github.com/repos/folio-org/ui-orders/subscribers","subscription_url":"https://api.github.com/repos/folio-org/ui-orders/subscription","commits_url":"https://api.github.com/repos/folio-org/ui-orders/commits{/sha}","git_commits_url":"https://api.github.com/repos/folio-org/ui-orders/git/commits{/sha}","comments_url":"https://api.github.com/repos/folio-org/ui-orders/comments{/number}","issue_comment_url":"https://api.github.com/repos/folio-org/ui-orders/issues/comments{/number}","contents_url":"https://api.github.com/repos/folio-org/ui-orders/contents/{+path}","compare_url":"https://api.github.com/repos/folio-org/ui-orders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folio-org/ui-orders/merges","archive_url":"https://api.github.com/repos/folio-org/ui-orders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folio-org/ui-orders/downloads","issues_url":"https://api.github.com/repos/folio-org/ui-orders/issues{/number}","pulls_url":"https://api.github.com/repos/folio-org/ui-orders/pulls{/number}","milestones_url":"https://api.github.com/repos/folio-org/ui-orders/milestones{/number}","notifications_url":"https://api.github.com/repos/folio-org/ui-orders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folio-org/ui-orders/labels{/name}","releases_url":"https://api.github.com/repos/folio-org/ui-orders/releases{/id}","deployments_url":"https://api.github.com/repos/folio-org/ui-orders/deployments","created_at":"2018-05-03T15:35:52Z","updated_at":"2018-11-19T22:05:30Z","pushed_at":"2018-11-20T10:18:45Z","git_url":"git://github.com/folio-org/ui-orders.git","ssh_url":"git@github.com:folio-org/ui-orders.git","clone_url":"https://github.com/folio-org/ui-orders.git","svn_url":"https://github.com/folio-org/ui-orders","homepage":null,"size":515,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"folio-org:master","ref":"master","sha":"fe272519e2ab57d719d2ec4277df8e61b8916c67","user":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"repo":{"id":132015947,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMTU5NDc=","name":"ui-orders","full_name":"folio-org/ui-orders","private":false,"owner":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/folio-org/ui-orders","description":null,"fork":false,"url":"https://api.github.com/repos/folio-org/ui-orders","forks_url":"https://api.github.com/repos/folio-org/ui-orders/forks","keys_url":"https://api.github.com/repos/folio-org/ui-orders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folio-org/ui-orders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folio-org/ui-orders/teams","hooks_url":"https://api.github.com/repos/folio-org/ui-orders/hooks","issue_events_url":"https://api.github.com/repos/folio-org/ui-orders/issues/events{/number}","events_url":"https://api.github.com/repos/folio-org/ui-orders/events","assignees_url":"https://api.github.com/repos/folio-org/ui-orders/assignees{/user}","branches_url":"https://api.github.com/repos/folio-org/ui-orders/branches{/branch}","tags_url":"https://api.github.com/repos/folio-org/ui-orders/tags","blobs_url":"https://api.github.com/repos/folio-org/ui-orders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folio-org/ui-orders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folio-org/ui-orders/git/refs{/sha}","trees_url":"https://api.github.com/repos/folio-org/ui-orders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folio-org/ui-orders/statuses/{sha}","languages_url":"https://api.github.com/repos/folio-org/ui-orders/languages","stargazers_url":"https://api.github.com/repos/folio-org/ui-orders/stargazers","contributors_url":"https://api.github.com/repos/folio-org/ui-orders/contributors","subscribers_url":"https://api.github.com/repos/folio-org/ui-orders/subscribers","subscription_url":"https://api.github.com/repos/folio-org/ui-orders/subscription","commits_url":"https://api.github.com/repos/folio-org/ui-orders/commits{/sha}","git_commits_url":"https://api.github.com/repos/folio-org/ui-orders/git/commits{/sha}","comments_url":"https://api.github.com/repos/folio-org/ui-orders/comments{/number}","issue_comment_url":"https://api.github.com/repos/folio-org/ui-orders/issues/comments{/number}","contents_url":"https://api.github.com/repos/folio-org/ui-orders/contents/{+path}","compare_url":"https://api.github.com/repos/folio-org/ui-orders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folio-org/ui-orders/merges","archive_url":"https://api.github.com/repos/folio-org/ui-orders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folio-org/ui-orders/downloads","issues_url":"https://api.github.com/repos/folio-org/ui-orders/issues{/number}","pulls_url":"https://api.github.com/repos/folio-org/ui-orders/pulls{/number}","milestones_url":"https://api.github.com/repos/folio-org/ui-orders/milestones{/number}","notifications_url":"https://api.github.com/repos/folio-org/ui-orders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folio-org/ui-orders/labels{/name}","releases_url":"https://api.github.com/repos/folio-org/ui-orders/releases{/id}","deployments_url":"https://api.github.com/repos/folio-org/ui-orders/deployments","created_at":"2018-05-03T15:35:52Z","updated_at":"2018-11-19T22:05:30Z","pushed_at":"2018-11-20T10:18:45Z","git_url":"git://github.com/folio-org/ui-orders.git","ssh_url":"git@github.com:folio-org/ui-orders.git","clone_url":"https://github.com/folio-org/ui-orders.git","svn_url":"https://github.com/folio-org/ui-orders","homepage":null,"size":515,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/folio-org/ui-orders/pulls/61"},"html":{"href":"https://github.com/folio-org/ui-orders/pull/61"},"issue":{"href":"https://api.github.com/repos/folio-org/ui-orders/issues/61"},"comments":{"href":"https://api.github.com/repos/folio-org/ui-orders/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/folio-org/ui-orders/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/folio-org/ui-orders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/folio-org/ui-orders/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/folio-org/ui-orders/statuses/09555ae49ede66745313fc6f4cb50b0a42cb503f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MaksymDryha"}}