From 385ecd85f6c5201a638b4e70a4abb0d2e6dc2979 Mon Sep 17 00:00:00 2001 From: William Chong Date: Thu, 21 Sep 2023 04:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Remove=20invalid=20num=20id=20an?= =?UTF-8?q?d=20add=20upload=20status=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/IscnRegisterForm.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/IscnRegisterForm.vue b/components/IscnRegisterForm.vue index d8d596b3..c11414f0 100644 --- a/components/IscnRegisterForm.vue +++ b/components/IscnRegisterForm.vue @@ -1069,6 +1069,7 @@ export default class IscnRegisterForm extends Vue { async onUploadOnly(): Promise { logTrackerEvent(this, 'ISCNCreate', 'ClickUpload', '', 1); + this.uploadStatus = 'loading' await this.getLikerIdsAddresses() this.$emit('handleSubmit') this.error = '' @@ -1178,10 +1179,10 @@ export default class IscnRegisterForm extends Vue { formData.append('num', '1') } this.isUploadingArweave = true; + this.uploadStatus = 'uploading'; try { const { arweaveId, - numAssetIds: [numbersProtocolAssetId], } = await this.$axios.$post( `${API_POST_ARWEAVE_UPLOAD}?txHash=${transactionHash}`, formData, @@ -1193,8 +1194,7 @@ export default class IscnRegisterForm extends Vue { ) if (arweaveId) { this.uploadArweaveId = arweaveId - this.numbersProtocolAssetId = numbersProtocolAssetId - this.$emit('arweaveUploaded', { arweaveId, numbersProtocolAssetId }) + this.$emit('arweaveUploaded', { arweaveId }) this.isOpenSignDialog = false } else { this.shouldShowAlert = true @@ -1217,6 +1217,7 @@ export default class IscnRegisterForm extends Vue { logTrackerEvent(this, 'ISCNCreate', 'SubmitToNumbers', '', 1); this.isOpenSignDialog = true; try { + this.uploadStatus = 'loading'; const formData = new FormData(); if (this.fileBlob) formData.append('file', this.fileBlob); const { @@ -1261,6 +1262,7 @@ export default class IscnRegisterForm extends Vue { return } try { + this.uploadStatus = 'signing' const res = await signISCNTx(formatISCNTxPayload(this.payload), this.signer, this.address) this.uploadStatus = 'success' this.$emit('txBroadcasted', res)