forked from Qortal/qortal-ui
Fixed a code typo bug in the trade portal.
This commit is contained in:
parent
95ace6a474
commit
146c2ec0f8
@ -1031,7 +1031,7 @@ class TradePortal extends LitElement {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (isNaN(Number(res))) {
|
if (isNaN(Number(res))) {
|
||||||
let snack1string = get("tradepage.tchange30")
|
let snack1string = get("tradepage.tchange30")
|
||||||
parentEpml.request('showSnackBar', `${snack1tring}`)
|
parentEpml.request('showSnackBar', `${snack1string}`)
|
||||||
} else {
|
} else {
|
||||||
this.listedCoins.get(this.selectedCoin).balance = (Number(res) / 1e8).toFixed(8)
|
this.listedCoins.get(this.selectedCoin).balance = (Number(res) / 1e8).toFixed(8)
|
||||||
}
|
}
|
||||||
@ -1721,12 +1721,12 @@ class TradePortal extends LitElement {
|
|||||||
this.isSellLoading = false
|
this.isSellLoading = false
|
||||||
this.sellBtnDisable = false
|
this.sellBtnDisable = false
|
||||||
let snack2string = get("tradepage.tchange20")
|
let snack2string = get("tradepage.tchange20")
|
||||||
parentEpml.request('showSnackBar', `${snack2tring}`)
|
parentEpml.request('showSnackBar', `${snack2string}`)
|
||||||
} else {
|
} else {
|
||||||
this.isSellLoading = false
|
this.isSellLoading = false
|
||||||
this.sellBtnDisable = false
|
this.sellBtnDisable = false
|
||||||
let snack3string = get("tradepage.tchange21")
|
let snack3string = get("tradepage.tchange21")
|
||||||
parentEpml.request('showSnackBar', `${snack3tring}: ${response.message}`)
|
parentEpml.request('showSnackBar', `${snack3string}: ${response.message}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1734,7 +1734,7 @@ class TradePortal extends LitElement {
|
|||||||
this.isSellLoading = false
|
this.isSellLoading = false
|
||||||
this.sellBtnDisable = false
|
this.sellBtnDisable = false
|
||||||
let snack4string = get("tradepage.tchange22")
|
let snack4string = get("tradepage.tchange22")
|
||||||
parentEpml.request('showSnackBar', `${snack4tring}`)
|
parentEpml.request('showSnackBar', `${snack4string}`)
|
||||||
return false
|
return false
|
||||||
} else {
|
} else {
|
||||||
const res = await makeRequest()
|
const res = await makeRequest()
|
||||||
@ -1777,17 +1777,17 @@ class TradePortal extends LitElement {
|
|||||||
this.shadowRoot.getElementById('buyTotalInput').value = this.initialAmount
|
this.shadowRoot.getElementById('buyTotalInput').value = this.initialAmount
|
||||||
this.shadowRoot.getElementById('qortalAtAddress').value = ''
|
this.shadowRoot.getElementById('qortalAtAddress').value = ''
|
||||||
let snack5string = get("tradepage.tchange23")
|
let snack5string = get("tradepage.tchange23")
|
||||||
parentEpml.request('showSnackBar', `${snack5tring}`)
|
parentEpml.request('showSnackBar', `${snack5string}`)
|
||||||
} else if (response === false) {
|
} else if (response === false) {
|
||||||
this.isBuyLoading = false
|
this.isBuyLoading = false
|
||||||
this.buyBtnDisable = false
|
this.buyBtnDisable = false
|
||||||
let snack6string = get("tradepage.tchange24")
|
let snack6string = get("tradepage.tchange24")
|
||||||
parentEpml.request('showSnackBar', `${snack6tring}`)
|
parentEpml.request('showSnackBar', `${snack6string}`)
|
||||||
} else {
|
} else {
|
||||||
this.isBuyLoading = false
|
this.isBuyLoading = false
|
||||||
this.buyBtnDisable = false
|
this.buyBtnDisable = false
|
||||||
let snack7string = get("tradepage.tchange25")
|
let snack7string = get("tradepage.tchange25")
|
||||||
parentEpml.request('showSnackBar', `${snack7tring}: ${response.message}`)
|
parentEpml.request('showSnackBar', `${snack7string}: ${response.message}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1814,12 +1814,12 @@ class TradePortal extends LitElement {
|
|||||||
button.remove()
|
button.remove()
|
||||||
this.cancelBtnDisable = false
|
this.cancelBtnDisable = false
|
||||||
let snack8string = get("tradepage.tchange26")
|
let snack8string = get("tradepage.tchange26")
|
||||||
parentEpml.request('showSnackBar', `${snack8tring}`)
|
parentEpml.request('showSnackBar', `${snack8string}`)
|
||||||
} else if (response === false) {
|
} else if (response === false) {
|
||||||
button.innerHTML = 'CANCEL'
|
button.innerHTML = 'CANCEL'
|
||||||
this.cancelBtnDisable = false
|
this.cancelBtnDisable = false
|
||||||
let snack9string = get("tradepage.tchange27")
|
let snack9string = get("tradepage.tchange27")
|
||||||
parentEpml.request('showSnackBar', `${snack9tring}`)
|
parentEpml.request('showSnackBar', `${snack9string}`)
|
||||||
} else {
|
} else {
|
||||||
button.innerHTML = 'CANCEL'
|
button.innerHTML = 'CANCEL'
|
||||||
this.cancelBtnDisable = false
|
this.cancelBtnDisable = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user