Skip to content

Commit

Permalink
🚸 Add upload status update in iscn register steps
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 20, 2023
1 parent 2104fb2 commit f14d898
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ export default class IscnRegisterForm extends Vue {
async onUploadOnly(): Promise<void> {
logTrackerEvent(this, 'ISCNCreate', 'ClickUpload', '', 1);
this.uploadStatus = 'loading'
await this.getLikerIdsAddresses()
this.$emit('handleSubmit')
this.error = ''
Expand Down Expand Up @@ -1172,6 +1173,7 @@ export default class IscnRegisterForm extends Vue {
logTrackerEvent(this, 'ISCNCreate', 'SubmitToNumbers', '', 1);
}
this.isUploadingArweave = true;
this.uploadStatus = 'uploading';
try {
const arrayBuffer = await this.fileBlob.arrayBuffer();
const buffer = Buffer.from(arrayBuffer);
Expand Down Expand Up @@ -1206,6 +1208,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 {
Expand Down Expand Up @@ -1250,6 +1253,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)
Expand Down

0 comments on commit f14d898

Please sign in to comment.