Skip to content

Commit

Permalink
🔀 Merge #459 into deploy/rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Apr 8, 2024
2 parents d3bfc42 + 5d97ac2 commit 3dd8d45
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 70 deletions.
2 changes: 1 addition & 1 deletion components/Alerts/SignFailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class SignFailed extends Vue {
get errorAlert() {
switch (this.errorType) {
case ErrorType.INSUFFICIENT_BALANCE:
return 'IscnRegisterForm.error.insufficient'
return 'IscnRegisterForm.error.insufficient_with_buy'
case ErrorType.USER_NOT_ISCN_OWNER:
return 'IscnRegisterForm.error.notIscnOwner'
Expand Down
2 changes: 1 addition & 1 deletion components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ export default class IscnRegisterForm extends Vue {
get errorMsg() {
switch (this.error) {
case 'INSUFFICIENT_BALANCE':
return this.$t('IscnRegisterForm.error.insufficient')
return this.$t('IscnRegisterForm.error.insufficient_with_like', { like: this.totalFee })
case 'MISSING_SIGNER':
return this.$t('IscnRegisterForm.error.missingSigner')
default:
Expand Down
2 changes: 1 addition & 1 deletion components/IscnUploadForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export default class IscnUploadForm extends Vue {
get errorMsg() {
switch (this.error) {
case 'INSUFFICIENT_BALANCE':
return this.$t('IscnRegisterForm.error.insufficient')
return this.$t('IscnRegisterForm.error.insufficient_with_like', { like: this.arweaveFee })
case 'MISSING_SIGNER':
return this.$t('IscnRegisterForm.error.missingSigner')
default:
Expand Down
4 changes: 0 additions & 4 deletions components/RootLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { namespace } from 'vuex-class'
import { IS_CHAIN_UPGRADING } from '~/constant'
const walletModule = namespace('wallet')
const uiModule = namespace('ui')
@Component({
head() {
Expand All @@ -41,15 +40,12 @@ const uiModule = namespace('ui')
export default class RootLayout extends Vue {
@walletModule.Action('restoreSessionIfNecessary') restoreSessionIfNecessary!: () => Promise<any>
@uiModule.Action('init') initUIStore!: () => void
@Prop({ default: 'bg-light-gray' }) readonly bgClass!: string
isOpenChainUpgradeBlockingDialog = false
async mounted() {
this.isOpenChainUpgradeBlockingDialog = !!IS_CHAIN_UPGRADING
this.initUIStore()
await this.restoreSessionIfNecessary()
}
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
"IscnRegisterForm.error.buy": "Buy LikeCoin",
"IscnRegisterForm.error.descriptionIsEmpty": "Please enter the ISCN description",
"IscnRegisterForm.error.faucet": "Get faucet",
"IscnRegisterForm.error.insufficient": "Oops, Insufficient Balance. {buy} ",
"IscnRegisterForm.error.insufficient_with_buy": "Oops, Insufficient Balance. {buy} ",
"IscnRegisterForm.error.insufficient_with_like": "Oops, Insufficient balance, requires {like} ",
"IscnRegisterForm.error.missingSigner": "Missing Signer. Please connect your wallet.",
"IscnRegisterForm.error.notIscnOwner": "Oops, User is not the current ISCN owner. {login}",
"IscnRegisterForm.error.reLogIn": "Change Wallet",
Expand Down
58 changes: 0 additions & 58 deletions store/ui.ts

This file was deleted.

4 changes: 0 additions & 4 deletions utils/store-accessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@ import { getModule } from 'vuex-module-decorators'

import WalletStore from '~/store/wallet'
import IscnStore from '~/store/iscn'
import UIStore from '~/store/ui'

let walletStore: WalletStore
let iscnStore: IscnStore
let uiStore: UIStore

function initialiseStores(store: Store<any>): void {
walletStore = getModule(WalletStore, store)
iscnStore = getModule(IscnStore, store)
uiStore = getModule(UIStore, store)
}

export {
initialiseStores,
walletStore,
iscnStore,
uiStore,
}

0 comments on commit 3dd8d45

Please sign in to comment.