Browse Source

Missing translation

pull/180/head
AlphaX-Projects 1 year ago
parent
commit
8f8b0eca6d
  1. 62
      core/src/components/login-view/login-section.js

62
core/src/components/login-view/login-section.js

@ -457,6 +457,10 @@ class LoginSection extends connect(store)(LitElement) {
return html`${translate("login.error2")}` return html`${translate("login.error2")}`
} }
renderError3Text() {
return html`${translate("login.lp8")}`
}
selectWallet(wallet) { selectWallet(wallet) {
this.selectedWallet = wallet this.selectedWallet = wallet
this.selectedPage = 'unlockStored' this.selectedPage = 'unlockStored'
@ -617,43 +621,37 @@ class LoginSection extends connect(store)(LitElement) {
// First decrypt... // First decrypt...
this.loadingRipple.welcomeMessage = this.renderPrepareText() this.loadingRipple.welcomeMessage = this.renderPrepareText()
// const x = e.clientX !== undefined ? e.clientX : e.explicitOriginalTarget.getBoundingClientRect().left + window.scrollX
// const y = e.clientY !== undefined ? e.clientY : e.explicitOriginalTarget.getBoundingClientRect().top + window.scrollY
this.loadingRipple.open({ this.loadingRipple.open({
x: e.clientX, x: e.clientX,
y: e.clientY y: e.clientY
}) }).then(() => {
.then(() => { const source = this.walletSources[type]()
const source = this.walletSources[type]() return createWallet(type, source, status => {
return createWallet(type, source, status => { this.loadingRipple.loadingMessage = status
this.loadingRipple.loadingMessage = status }).then(wallet => {
}) store.dispatch(doLogin(wallet))
.then(wallet => { store.dispatch(doSelectAddress(wallet.addresses[0]))
store.dispatch(doLogin(wallet)) this.navigate('show-address')
store.dispatch(doSelectAddress(wallet.addresses[0])) const storedWallets = store.getState().user.storedWallets
this.navigate('show-address') const storedWalletAddress = storedWallets[wallet.addresses[0].address]
const storedWallets = store.getState().user.storedWallets
const storedWalletAddress = storedWallets[wallet.addresses[0].address] if (!storedWalletAddress) {
if (this.saveInBrowser && type !== 'storedWallet') {
if (!storedWalletAddress) { store.dispatch(doStoreWallet(wallet, source.password, source.name, () => {
if (this.saveInBrowser && type !== 'storedWallet') { ripple.loadingMessage = status
store.dispatch(doStoreWallet(wallet, source.password, source.name, () => { })).catch(err => console.error(err))
}
ripple.loadingMessage = status }
})).catch(err => console.error(err)) checkApiKey(this.nodeConfig)
} this.cleanup()
} return this.loadingRipple.fade()
checkApiKey(this.nodeConfig)
this.cleanup()
return this.loadingRipple.fade()
})
})
.catch(e => {
this.loginErrorMessage = e
console.error(e)
return this.loadingRipple.close()
}) })
}).catch(e => {
this.loginErrorMessage = this.renderError3Text()
console.error(e)
return this.loadingRipple.close()
})
} }
back() { back() {

Loading…
Cancel
Save