- Lean how to Connect
+ {{ $t('walletConnect.learnText') }}
- Download extension
+ {{ $t('walletConnect.downloadExtension') }}
@@ -109,6 +119,7 @@ export default class WalletModal extends Vue {
protected guideUrl = ''
protected extensionUrl = ''
protected walletAccounts: WalletAccount[] = []
+ private hasUserAuthorized = false
set account(account: string) {
this.$emit('close')
@@ -133,6 +144,12 @@ export default class WalletModal extends Vue {
return this.chainProperties?.ss58Format
}
+ get hasUserWalletAuth() {
+ return (
+ localStorage.getItem('user_auth_wallet_add') || this.hasUserAuthorized
+ )
+ }
+
@Watch('walletAccounts', { immediate: true })
handleAccounts(value: WalletAccount[], oldVal: WalletAccount[]): void {
if (shouldUpdate(value, oldVal)) {
@@ -140,6 +157,13 @@ export default class WalletModal extends Vue {
}
}
+ protected setUserAuthValue() {
+ localStorage.setItem(
+ 'user_auth_wallet_add',
+ (!!this.hasUserAuthorized).toString()
+ )
+ }
+
protected setWallet(wallet: BaseDotsamaWallet): void {
this.selectedWalletProvider = wallet
this.hasSelectedWalletProvider = true
@@ -209,6 +233,10 @@ export default class WalletModal extends Vue {
background: unset;
}
+ .modal-card-body {
+ display: block;
+ }
+
.buttons button {
border-radius: 0;
justify-content: space-between;
diff --git a/langDir/en.json b/langDir/en.json
index d7075ecc5c..010c032183 100644
--- a/langDir/en.json
+++ b/langDir/en.json
@@ -702,5 +702,12 @@
"loadAllArtworks": "Load all artworks in gallery on default (videos, etc.)",
"enableGyroEffect": "Enable gyroscopic effect in gallery for 3d NFTs",
"exploreTabOrder": "Default tab in explore"
+ },
+ "walletConnect": {
+ "walletHeading": "Connect Wallet",
+ "authText": "Kodadot will never ask you to provide your mnemonic phrase or private key.",
+ "understand": "I understand",
+ "learnText": "Learn how to Connect",
+ "downloadExtension": "Download extension"
}
}