{"action":"created","comment":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments/84555903","pull_request_review_id":5330486,"id":84555903,"diff_hunk":"@@ -65,21 +65,10 @@ <h1 class=\"h3 txUnb padMd js-listingHeading\"><% print(ob.createMode ? ob.polyT('\n                 <label for=\"editListingPrice\" class=\"required\"><%= ob.polyT('editListing.price') %></label>\n                   <% if (ob.errors['listing.item.price']) print(ob.formErrorTmpl({ errors: ob.errors['listing.item.price'] })) %>\n                 <div class=\"inputSelect\">\n-                  <%\n-                    const decimalPlaces = ob.listing.metadata.pricingCurrency === 'BTC' ? 8 : 2;\n-                    let listingPrice = ob.listing.item.price;\n-                    listingPrice = typeof listingPrice === 'number' ? listingPrice.toFixed(decimalPlaces) : listingPrice;\n-                  %>\n-                  <input type=\"text\" class=\"clrBr clrP js-price\" name=\"listing.item.price\" id=\"editListingPrice\" value=\"<%= listingPrice%>\" data-var-type=\"number\">\n+                  <input type=\"text\" class=\"clrBr clrP js-price\" name=\"listing.item.price\" id=\"editListingPrice\" value=\"<% if (typeof ob.listing.item.price === 'number') print(ob.formatPrice(ob.listing.item.price, ob.listing.metadata.pricingCurrency === 'BTC')) %>\" data-var-type=\"number\">","path":"js/templates/modals/editListing/editListing.html","position":22,"original_position":22,"commit_id":"fed4c50eb884830357185041db149b96c1986fe1","original_commit_id":"fed4c50eb884830357185041db149b96c1986fe1","user":{"login":"rmisio","id":794517,"avatar_url":"https://avatars.githubusercontent.com/u/794517?v=3","gravatar_id":"","url":"https://api.github.com/users/rmisio","html_url":"https://github.com/rmisio","followers_url":"https://api.github.com/users/rmisio/followers","following_url":"https://api.github.com/users/rmisio/following{/other_user}","gists_url":"https://api.github.com/users/rmisio/gists{/gist_id}","starred_url":"https://api.github.com/users/rmisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmisio/subscriptions","organizations_url":"https://api.github.com/users/rmisio/orgs","repos_url":"https://api.github.com/users/rmisio/repos","events_url":"https://api.github.com/users/rmisio/events{/privacy}","received_events_url":"https://api.github.com/users/rmisio/received_events","type":"User","site_admin":false},"body":"To determine whether we want to add the decimal places in. If it's not set, it will be `undefined` and in that case, we don't want to output anything for the value attribute of this input (i.e. we want the field to be empty).\r\n\r\nIf it's a number, then we want to format it by adding the appropriate decimal places (e.g. 123 => 123.00).","created_at":"2016-10-21T22:37:16Z","updated_at":"2016-10-21T22:37:16Z","html_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/71#discussion_r84555903","pull_request_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments/84555903"},"html":{"href":"https://github.com/OpenBazaar/openbazaar-desktop/pull/71#discussion_r84555903"},"pull_request":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71","id":89462250,"html_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/71","diff_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/71.diff","patch_url":"https://github.com/OpenBazaar/openbazaar-desktop/pull/71.patch","issue_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/71","number":71,"state":"open","locked":false,"title":"Listing shipping options","user":{"login":"rmisio","id":794517,"avatar_url":"https://avatars.githubusercontent.com/u/794517?v=3","gravatar_id":"","url":"https://api.github.com/users/rmisio","html_url":"https://github.com/rmisio","followers_url":"https://api.github.com/users/rmisio/followers","following_url":"https://api.github.com/users/rmisio/following{/other_user}","gists_url":"https://api.github.com/users/rmisio/gists{/gist_id}","starred_url":"https://api.github.com/users/rmisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmisio/subscriptions","organizations_url":"https://api.github.com/users/rmisio/orgs","repos_url":"https://api.github.com/users/rmisio/repos","events_url":"https://api.github.com/users/rmisio/events{/privacy}","received_events_url":"https://api.github.com/users/rmisio/received_events","type":"User","site_admin":false},"body":"This change-set implements the Shipping section within the Listing modal.","created_at":"2016-10-14T22:03:55Z","updated_at":"2016-10-21T22:37:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c933c3b605e8e2098103f87edbfbd1847e3ce50","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71/commits","review_comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71/comments","review_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/71/comments","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/fed4c50eb884830357185041db149b96c1986fe1","head":{"label":"OpenBazaar:listingShipping","ref":"listingShipping","sha":"fed4c50eb884830357185041db149b96c1986fe1","user":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars.githubusercontent.com/u/7438770?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":61640921,"name":"openbazaar-desktop","full_name":"OpenBazaar/openbazaar-desktop","owner":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars.githubusercontent.com/u/7438770?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenBazaar/openbazaar-desktop","description":"2.0 Desktop Client for OpenBazaar (talks to openbazaar-go server daemon)","fork":false,"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop","forks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/forks","keys_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/teams","hooks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/hooks","issue_events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/events","assignees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/tags","blobs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/languages","stargazers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/stargazers","contributors_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contributors","subscribers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscribers","subscription_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscription","commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/merges","archive_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/downloads","issues_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/labels{/name}","releases_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/deployments","created_at":"2016-06-21T14:34:19Z","updated_at":"2016-10-20T15:36:18Z","pushed_at":"2016-10-21T22:32:17Z","git_url":"git://github.com/OpenBazaar/openbazaar-desktop.git","ssh_url":"git@github.com:OpenBazaar/openbazaar-desktop.git","clone_url":"https://github.com/OpenBazaar/openbazaar-desktop.git","svn_url":"https://github.com/OpenBazaar/openbazaar-desktop","homepage":null,"size":3534,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":18,"forks":4,"open_issues":18,"watchers":28,"default_branch":"master"}},"base":{"label":"OpenBazaar:master","ref":"master","sha":"62df1e31f67b950a7f43cefdc59d5f9846716bc7","user":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars.githubusercontent.com/u/7438770?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":61640921,"name":"openbazaar-desktop","full_name":"OpenBazaar/openbazaar-desktop","owner":{"login":"OpenBazaar","id":7438770,"avatar_url":"https://avatars.githubusercontent.com/u/7438770?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenBazaar","html_url":"https://github.com/OpenBazaar","followers_url":"https://api.github.com/users/OpenBazaar/followers","following_url":"https://api.github.com/users/OpenBazaar/following{/other_user}","gists_url":"https://api.github.com/users/OpenBazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenBazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenBazaar/subscriptions","organizations_url":"https://api.github.com/users/OpenBazaar/orgs","repos_url":"https://api.github.com/users/OpenBazaar/repos","events_url":"https://api.github.com/users/OpenBazaar/events{/privacy}","received_events_url":"https://api.github.com/users/OpenBazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenBazaar/openbazaar-desktop","description":"2.0 Desktop Client for OpenBazaar (talks to openbazaar-go server daemon)","fork":false,"url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop","forks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/forks","keys_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/teams","hooks_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/hooks","issue_events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/events","assignees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/tags","blobs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/languages","stargazers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/stargazers","contributors_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contributors","subscribers_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscribers","subscription_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/subscription","commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/merges","archive_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/downloads","issues_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/labels{/name}","releases_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/deployments","created_at":"2016-06-21T14:34:19Z","updated_at":"2016-10-20T15:36:18Z","pushed_at":"2016-10-21T22:32:17Z","git_url":"git://github.com/OpenBazaar/openbazaar-desktop.git","ssh_url":"git@github.com:OpenBazaar/openbazaar-desktop.git","clone_url":"https://github.com/OpenBazaar/openbazaar-desktop.git","svn_url":"https://github.com/OpenBazaar/openbazaar-desktop","homepage":null,"size":3534,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":18,"forks":4,"open_issues":18,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71"},"html":{"href":"https://github.com/OpenBazaar/openbazaar-desktop/pull/71"},"issue":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/71"},"comments":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/OpenBazaar/openbazaar-desktop/statuses/fed4c50eb884830357185041db149b96c1986fe1"}}}}
{"actor":{"display_login":"rmisio"}}