diff --git a/components/IscnRegisterForm.vue b/components/IscnRegisterForm.vue index bab3cc37..e8dfb03e 100644 --- a/components/IscnRegisterForm.vue +++ b/components/IscnRegisterForm.vue @@ -768,7 +768,7 @@ export default class IscnRegisterForm extends Vue { isOpenFileInfoDialog = false isOpenAuthorDialog = false isOpenWarningSnackbar = false - isOpenKeplr = true + isOpenWallet = true activeEditingAuthorIndex = -1 isOpenSignDialog = false @@ -1018,11 +1018,11 @@ export default class IscnRegisterForm extends Vue { get buttonState() { return { - preset: this.isOpenKeplr ? 'tertiary' : 'outline', - text: this.isOpenKeplr - ? this.$t('IscnRegisterForm.signDialog.keplr') + preset: this.isOpenWallet ? 'tertiary' : 'outline', + text: this.isOpenWallet + ? this.$t('IscnRegisterForm.signDialog.wallet') : this.$t('IscnRegisterForm.signDialog.retry'), - isDisable: this.isOpenKeplr, + isDisable: this.isOpenWallet, } } @@ -1318,7 +1318,7 @@ estimation, onOpenKeplr() { logTrackerEvent(this, 'ISCNCreate', 'OpenKeplr', '', 1) - this.isOpenKeplr = true + this.isOpenWallet = true } validateField( diff --git a/components/IscnUploadForm.vue b/components/IscnUploadForm.vue index cc86b5be..c8c88ac8 100644 --- a/components/IscnUploadForm.vue +++ b/components/IscnUploadForm.vue @@ -295,7 +295,6 @@ export default class IscnUploadForm extends Vue { isOpenFileInfoDialog = false isOpenSignDialog = false isOpenWarningSnackbar = false - isOpenKeplr = true isSizeExceeded = false isAddISCNPageToEpub = false @@ -688,16 +687,6 @@ export default class IscnUploadForm extends Vue { this.displayExifInfo = this.fileRecords[index].exifInfo } - onOpenKeplr() { - logTrackerEvent(this, 'ISCNCreate', 'OpenKeplr', '', 1); - this.isOpenKeplr = true - // Hack: In some cases, there might be no response from Keplr, - // so we set a timeout to automatically close it after 5 seconds. - setTimeout(() => { - this.isOpenKeplr = false - }, 5000) - } - async estimateArweaveFee(): Promise { try { const results = await Promise.all( @@ -783,7 +772,6 @@ export default class IscnUploadForm extends Vue { logTrackerEvent(this, 'ISCNCreate', 'SubmitToArweave', '', 1); if (!tempRecord.fileBlob) return; this.isOpenSignDialog = true; - this.onOpenKeplr(); tempRecord.transactionHash = transactionHash if (!tempRecord.transactionHash) { diff --git a/locales/en.json b/locales/en.json index 22b2cfed..3fc93108 100644 --- a/locales/en.json +++ b/locales/en.json @@ -259,11 +259,11 @@ "IscnRegisterForm.register.fee": "Fee: {fee} LIKE", "IscnRegisterForm.signDialog.closeWarning": "Please don't close the window...", "IscnRegisterForm.signDialog.fee": "Fee", - "IscnRegisterForm.signDialog.keplr": "Opening Keplr ...", "IscnRegisterForm.signDialog.retry": "Retry", "IscnRegisterForm.signDialog.sign.arweave.upload": "Please sign to upload to Arweave", "IscnRegisterForm.signDialog.sign.arweave.uploading": "Depending on the file size, it may take several minutes.\n You will be requested to sign again before finishing.", "IscnRegisterForm.signDialog.sign.iscn.register": "Please sign to register ISCN record", + "IscnRegisterForm.signDialog.wallet": "Opening Wallet ...", "IscnRegisterForm.sameAsDialog.title": "Define sameAs URLs", "IscnRegisterForm.title.editAuthor": "Add Author", "IscnRegisterForm.title.editStakeholder": "Edit Stakeholder",