{"action":"created","comment":{"url":"https://api.github.com/repos/tokend/web-client/pulls/comments/245347875","pull_request_review_id":189408308,"id":245347875,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTM0Nzg3NQ==","diff_hunk":"@@ -0,0 +1,190 @@\n+<template>\n+  <form\n+    class=\"app-form issuance-form\"\n+    @submit.prevent=\"submit\"\n+  >\n+    <div class=\"app__form-row\">\n+      <div class=\"app__form-field\">\n+        <file-field\n+          :label=\"'issuance.lbl-pre-issuance' | globalize\"\n+          :note=\"'issuance.lbl-file-type' | globalize\"\n+          accept=\".iss\"\n+          v-model=\"documents.preIssuance\"\n+        />\n+      </div>\n+    </div>\n+    <div\n+      v-if=\"issuances.length\"\n+      class=\"pre-issuance-form__info\"\n+    >\n+      <h3>{{ 'issuance.pre-issuance-info' | globalize }}</h3>\n+      <table class=\"app__table\">\n+        <thead>\n+          <th>{{ 'issuance.asset' | globalize }}</th>\n+          <th>{{ 'issuance.amount' | globalize }}</th>\n+        </thead>\n+        <tbody>\n+          <tr v-for=\"issuance in issuances\" :key=\"issuance.asset\">\n+            <td>\n+              {{ issuance.asset }}\n+            </td>\n+            <td>\n+              {{\n+                issuance.amount | formatMoney\n+              }}\n+            </td>\n+          </tr>\n+        </tbody>\n+      </table>\n+    </div>\n+    <div class=\"app__form-actions\">\n+      <button\n+        v-ripple\n+        type=\"submit\"\n+        class=\"issuance-form__submit-btn\"\n+        :disabled=\"formMixin.isDisabled\"\n+      >\n+        {{ 'issuance.upload' | globalize }}\n+      </button>\n+      <button\n+        v-ripple\n+        type=\"button\"\n+        class=\"issuance-form__cancel-btn\"\n+        @click.prevent=\"closeForm\"\n+      >\n+        {{ 'issuance.cancel' | globalize }}\n+      </button>\n+    </div>\n+  </form>\n+</template>\n+\n+<script>\n+import FormMixin from '@/vue/mixins/form.mixin'\n+import FileField from '@/vue/fields/FileField'\n+\n+import { Sdk } from '@/sdk'\n+import { base } from '@tokend/js-sdk'\n+import config from '@/config'\n+\n+import { Bus } from '@/js/helpers/event-bus'\n+import { ErrorHandler } from '@/js/helpers/error-handler'\n+\n+import { FileHelper } from '@/js/helpers/file.helper'\n+\n+import { vuexTypes } from '@/vuex'\n+import { mapGetters } from 'vuex'\n+\n+export default {\n+  name: 'create-issuance-form',\n+  components: {\n+    FileField\n+  },\n+  mixins: [FormMixin],\n+  props: {\n+    isShown: { type: Boolean, default: true }\n+  },\n+  data: _ => ({\n+    documents: {\n+      preIssuance: null\n+    },\n+    userOwnedTokens: null,\n+    issuances: []\n+  }),\n+  computed: {\n+    ...mapGetters([\n+      vuexTypes.account\n+    ])\n+  },\n+  watch: {\n+    'documents.preIssuance': async function (value) {\n+      if (value) {\n+        const extracted = await FileHelper.readFileAsText(value.file)\n+        try {\n+          this.parsePreIssuances(JSON.parse(extracted).issuances)\n+        } catch (e) {\n+          console.error(e)\n+          Bus.error('errors.file-corrupted')\n+        }\n+      }\n+    }\n+  },\n+  async created () {\n+    this.disableForm()\n+    await this.loadUserOwnedTokens()","path":"src/vue/forms/UploadPreIssuanceForm.vue","position":113,"original_position":113,"commit_id":"8993894b4f5c7d87ffa45dfccfdac27ae3100910","original_commit_id":"8993894b4f5c7d87ffa45dfccfdac27ae3100910","user":{"login":"quinn71","id":12418586,"node_id":"MDQ6VXNlcjEyNDE4NTg2","avatar_url":"https://avatars0.githubusercontent.com/u/12418586?v=4","gravatar_id":"","url":"https://api.github.com/users/quinn71","html_url":"https://github.com/quinn71","followers_url":"https://api.github.com/users/quinn71/followers","following_url":"https://api.github.com/users/quinn71/following{/other_user}","gists_url":"https://api.github.com/users/quinn71/gists{/gist_id}","starred_url":"https://api.github.com/users/quinn71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quinn71/subscriptions","organizations_url":"https://api.github.com/users/quinn71/orgs","repos_url":"https://api.github.com/users/quinn71/repos","events_url":"https://api.github.com/users/quinn71/events{/privacy}","received_events_url":"https://api.github.com/users/quinn71/received_events","type":"User","site_admin":false},"body":"I don't see the `enableForm` call","created_at":"2019-01-04T16:27:49Z","updated_at":"2019-01-04T16:50:16Z","html_url":"https://github.com/tokend/web-client/pull/16#discussion_r245347875","pull_request_url":"https://api.github.com/repos/tokend/web-client/pulls/16","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/tokend/web-client/pulls/comments/245347875"},"html":{"href":"https://github.com/tokend/web-client/pull/16#discussion_r245347875"},"pull_request":{"href":"https://api.github.com/repos/tokend/web-client/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/tokend/web-client/pulls/16","id":242054181,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMDU0MTgx","html_url":"https://github.com/tokend/web-client/pull/16","diff_url":"https://github.com/tokend/web-client/pull/16.diff","patch_url":"https://github.com/tokend/web-client/pull/16.patch","issue_url":"https://api.github.com/repos/tokend/web-client/issues/16","number":16,"state":"open","locked":false,"title":"Issuance page","user":{"login":"ardier16","id":17788043,"node_id":"MDQ6VXNlcjE3Nzg4MDQz","avatar_url":"https://avatars2.githubusercontent.com/u/17788043?v=4","gravatar_id":"","url":"https://api.github.com/users/ardier16","html_url":"https://github.com/ardier16","followers_url":"https://api.github.com/users/ardier16/followers","following_url":"https://api.github.com/users/ardier16/following{/other_user}","gists_url":"https://api.github.com/users/ardier16/gists{/gist_id}","starred_url":"https://api.github.com/users/ardier16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardier16/subscriptions","organizations_url":"https://api.github.com/users/ardier16/orgs","repos_url":"https://api.github.com/users/ardier16/repos","events_url":"https://api.github.com/users/ardier16/events{/privacy}","received_events_url":"https://api.github.com/users/ardier16/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-01-03T17:02:03Z","updated_at":"2019-01-04T16:50:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea9e2db3c7a9023da8c50268f097c3301a893ddf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"max-nes","id":22102559,"node_id":"MDQ6VXNlcjIyMTAyNTU5","avatar_url":"https://avatars0.githubusercontent.com/u/22102559?v=4","gravatar_id":"","url":"https://api.github.com/users/max-nes","html_url":"https://github.com/max-nes","followers_url":"https://api.github.com/users/max-nes/followers","following_url":"https://api.github.com/users/max-nes/following{/other_user}","gists_url":"https://api.github.com/users/max-nes/gists{/gist_id}","starred_url":"https://api.github.com/users/max-nes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-nes/subscriptions","organizations_url":"https://api.github.com/users/max-nes/orgs","repos_url":"https://api.github.com/users/max-nes/repos","events_url":"https://api.github.com/users/max-nes/events{/privacy}","received_events_url":"https://api.github.com/users/max-nes/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tokend/web-client/pulls/16/commits","review_comments_url":"https://api.github.com/repos/tokend/web-client/pulls/16/comments","review_comment_url":"https://api.github.com/repos/tokend/web-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tokend/web-client/issues/16/comments","statuses_url":"https://api.github.com/repos/tokend/web-client/statuses/8993894b4f5c7d87ffa45dfccfdac27ae3100910","head":{"label":"tokend:issuance-page","ref":"issuance-page","sha":"8993894b4f5c7d87ffa45dfccfdac27ae3100910","user":{"login":"tokend","id":42088890,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDg4ODkw","avatar_url":"https://avatars0.githubusercontent.com/u/42088890?v=4","gravatar_id":"","url":"https://api.github.com/users/tokend","html_url":"https://github.com/tokend","followers_url":"https://api.github.com/users/tokend/followers","following_url":"https://api.github.com/users/tokend/following{/other_user}","gists_url":"https://api.github.com/users/tokend/gists{/gist_id}","starred_url":"https://api.github.com/users/tokend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokend/subscriptions","organizations_url":"https://api.github.com/users/tokend/orgs","repos_url":"https://api.github.com/users/tokend/repos","events_url":"https://api.github.com/users/tokend/events{/privacy}","received_events_url":"https://api.github.com/users/tokend/received_events","type":"Organization","site_admin":false},"repo":{"id":157407954,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0MDc5NTQ=","name":"web-client","full_name":"tokend/web-client","private":false,"owner":{"login":"tokend","id":42088890,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDg4ODkw","avatar_url":"https://avatars0.githubusercontent.com/u/42088890?v=4","gravatar_id":"","url":"https://api.github.com/users/tokend","html_url":"https://github.com/tokend","followers_url":"https://api.github.com/users/tokend/followers","following_url":"https://api.github.com/users/tokend/following{/other_user}","gists_url":"https://api.github.com/users/tokend/gists{/gist_id}","starred_url":"https://api.github.com/users/tokend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokend/subscriptions","organizations_url":"https://api.github.com/users/tokend/orgs","repos_url":"https://api.github.com/users/tokend/repos","events_url":"https://api.github.com/users/tokend/events{/privacy}","received_events_url":"https://api.github.com/users/tokend/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tokend/web-client","description":"[Work in progress] Refactored version of client-scaffold, non-compatible with ","fork":false,"url":"https://api.github.com/repos/tokend/web-client","forks_url":"https://api.github.com/repos/tokend/web-client/forks","keys_url":"https://api.github.com/repos/tokend/web-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tokend/web-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tokend/web-client/teams","hooks_url":"https://api.github.com/repos/tokend/web-client/hooks","issue_events_url":"https://api.github.com/repos/tokend/web-client/issues/events{/number}","events_url":"https://api.github.com/repos/tokend/web-client/events","assignees_url":"https://api.github.com/repos/tokend/web-client/assignees{/user}","branches_url":"https://api.github.com/repos/tokend/web-client/branches{/branch}","tags_url":"https://api.github.com/repos/tokend/web-client/tags","blobs_url":"https://api.github.com/repos/tokend/web-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tokend/web-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tokend/web-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/tokend/web-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tokend/web-client/statuses/{sha}","languages_url":"https://api.github.com/repos/tokend/web-client/languages","stargazers_url":"https://api.github.com/repos/tokend/web-client/stargazers","contributors_url":"https://api.github.com/repos/tokend/web-client/contributors","subscribers_url":"https://api.github.com/repos/tokend/web-client/subscribers","subscription_url":"https://api.github.com/repos/tokend/web-client/subscription","commits_url":"https://api.github.com/repos/tokend/web-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/tokend/web-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/tokend/web-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/tokend/web-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/tokend/web-client/contents/{+path}","compare_url":"https://api.github.com/repos/tokend/web-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tokend/web-client/merges","archive_url":"https://api.github.com/repos/tokend/web-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tokend/web-client/downloads","issues_url":"https://api.github.com/repos/tokend/web-client/issues{/number}","pulls_url":"https://api.github.com/repos/tokend/web-client/pulls{/number}","milestones_url":"https://api.github.com/repos/tokend/web-client/milestones{/number}","notifications_url":"https://api.github.com/repos/tokend/web-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tokend/web-client/labels{/name}","releases_url":"https://api.github.com/repos/tokend/web-client/releases{/id}","deployments_url":"https://api.github.com/repos/tokend/web-client/deployments","created_at":"2018-11-13T16:07:12Z","updated_at":"2018-12-27T15:52:19Z","pushed_at":"2019-01-03T17:02:03Z","git_url":"git://github.com/tokend/web-client.git","ssh_url":"git@github.com:tokend/web-client.git","clone_url":"https://github.com/tokend/web-client.git","svn_url":"https://github.com/tokend/web-client","homepage":"","size":10512,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"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":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"tokend:master","ref":"master","sha":"aa38dbb543bdf74fe1f48cbc7e26b5cb90ce5bea","user":{"login":"tokend","id":42088890,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDg4ODkw","avatar_url":"https://avatars0.githubusercontent.com/u/42088890?v=4","gravatar_id":"","url":"https://api.github.com/users/tokend","html_url":"https://github.com/tokend","followers_url":"https://api.github.com/users/tokend/followers","following_url":"https://api.github.com/users/tokend/following{/other_user}","gists_url":"https://api.github.com/users/tokend/gists{/gist_id}","starred_url":"https://api.github.com/users/tokend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokend/subscriptions","organizations_url":"https://api.github.com/users/tokend/orgs","repos_url":"https://api.github.com/users/tokend/repos","events_url":"https://api.github.com/users/tokend/events{/privacy}","received_events_url":"https://api.github.com/users/tokend/received_events","type":"Organization","site_admin":false},"repo":{"id":157407954,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0MDc5NTQ=","name":"web-client","full_name":"tokend/web-client","private":false,"owner":{"login":"tokend","id":42088890,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDg4ODkw","avatar_url":"https://avatars0.githubusercontent.com/u/42088890?v=4","gravatar_id":"","url":"https://api.github.com/users/tokend","html_url":"https://github.com/tokend","followers_url":"https://api.github.com/users/tokend/followers","following_url":"https://api.github.com/users/tokend/following{/other_user}","gists_url":"https://api.github.com/users/tokend/gists{/gist_id}","starred_url":"https://api.github.com/users/tokend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokend/subscriptions","organizations_url":"https://api.github.com/users/tokend/orgs","repos_url":"https://api.github.com/users/tokend/repos","events_url":"https://api.github.com/users/tokend/events{/privacy}","received_events_url":"https://api.github.com/users/tokend/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tokend/web-client","description":"[Work in progress] Refactored version of client-scaffold, non-compatible with ","fork":false,"url":"https://api.github.com/repos/tokend/web-client","forks_url":"https://api.github.com/repos/tokend/web-client/forks","keys_url":"https://api.github.com/repos/tokend/web-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tokend/web-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tokend/web-client/teams","hooks_url":"https://api.github.com/repos/tokend/web-client/hooks","issue_events_url":"https://api.github.com/repos/tokend/web-client/issues/events{/number}","events_url":"https://api.github.com/repos/tokend/web-client/events","assignees_url":"https://api.github.com/repos/tokend/web-client/assignees{/user}","branches_url":"https://api.github.com/repos/tokend/web-client/branches{/branch}","tags_url":"https://api.github.com/repos/tokend/web-client/tags","blobs_url":"https://api.github.com/repos/tokend/web-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tokend/web-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tokend/web-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/tokend/web-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tokend/web-client/statuses/{sha}","languages_url":"https://api.github.com/repos/tokend/web-client/languages","stargazers_url":"https://api.github.com/repos/tokend/web-client/stargazers","contributors_url":"https://api.github.com/repos/tokend/web-client/contributors","subscribers_url":"https://api.github.com/repos/tokend/web-client/subscribers","subscription_url":"https://api.github.com/repos/tokend/web-client/subscription","commits_url":"https://api.github.com/repos/tokend/web-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/tokend/web-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/tokend/web-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/tokend/web-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/tokend/web-client/contents/{+path}","compare_url":"https://api.github.com/repos/tokend/web-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tokend/web-client/merges","archive_url":"https://api.github.com/repos/tokend/web-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tokend/web-client/downloads","issues_url":"https://api.github.com/repos/tokend/web-client/issues{/number}","pulls_url":"https://api.github.com/repos/tokend/web-client/pulls{/number}","milestones_url":"https://api.github.com/repos/tokend/web-client/milestones{/number}","notifications_url":"https://api.github.com/repos/tokend/web-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tokend/web-client/labels{/name}","releases_url":"https://api.github.com/repos/tokend/web-client/releases{/id}","deployments_url":"https://api.github.com/repos/tokend/web-client/deployments","created_at":"2018-11-13T16:07:12Z","updated_at":"2018-12-27T15:52:19Z","pushed_at":"2019-01-03T17:02:03Z","git_url":"git://github.com/tokend/web-client.git","ssh_url":"git@github.com:tokend/web-client.git","clone_url":"https://github.com/tokend/web-client.git","svn_url":"https://github.com/tokend/web-client","homepage":"","size":10512,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"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":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tokend/web-client/pulls/16"},"html":{"href":"https://github.com/tokend/web-client/pull/16"},"issue":{"href":"https://api.github.com/repos/tokend/web-client/issues/16"},"comments":{"href":"https://api.github.com/repos/tokend/web-client/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/tokend/web-client/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/tokend/web-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tokend/web-client/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/tokend/web-client/statuses/8993894b4f5c7d87ffa45dfccfdac27ae3100910"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"quinn71"}}