bugfixes
This commit is contained in:
@@ -23,10 +23,14 @@ export function removeSymbolChangedCallback(cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function changeSymbol(symbol) {
|
function changeSymbol(symbol) {
|
||||||
|
if (symbol===null)
|
||||||
|
co.selectedSymbol = null
|
||||||
|
else {
|
||||||
const info = lookupSymbol(symbol.full_name)
|
const info = lookupSymbol(symbol.full_name)
|
||||||
lastSymbolChangedArgs = info
|
lastSymbolChangedArgs = info
|
||||||
symbolChangedCbs.forEach((cb)=>cb(info))
|
symbolChangedCbs.forEach((cb) => cb(info))
|
||||||
co.selectedSymbol = info
|
co.selectedSymbol = info
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,15 +37,18 @@ export function initFeeDropdown(w) {
|
|||||||
function updateFeeDropdown() {
|
function updateFeeDropdown() {
|
||||||
if (feeDropdown===null) return
|
if (feeDropdown===null) return
|
||||||
const symbolItem = useChartOrderStore().selectedSymbol
|
const symbolItem = useChartOrderStore().selectedSymbol
|
||||||
const feeOpts = {
|
let items
|
||||||
items: symbolItem.pools.map((p)=> {
|
if (symbolItem===null)
|
||||||
|
items = [{title: '0.00%'}]
|
||||||
|
else {
|
||||||
|
items = symbolItem.pools.map((p)=> {
|
||||||
return {
|
return {
|
||||||
title: (p[1]/10000).toFixed(2)+'%',
|
title: (p[1]/10000).toFixed(2)+'%',
|
||||||
onSelect: ()=>selectPool(p),
|
onSelect: ()=>selectPool(p),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
feeDropdown.applyOptions(feeOpts)
|
feeDropdown.applyOptions({items})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
|
|||||||
inverted ^= symbol.x.data.inverted
|
inverted ^= symbol.x.data.inverted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
baseURL = `//ohlc/`
|
baseURL = `/ohlc/`
|
||||||
chainId = useStore().chainId
|
chainId = useStore().chainId
|
||||||
}
|
}
|
||||||
baseURL += `${chainId}/${contract}/`
|
baseURL += `${chainId}/${contract}/`
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
<!-- <v-icon icon="mdi-hand-wave" color="grey"/>-->
|
<!-- <v-icon icon="mdi-hand-wave" color="grey"/>-->
|
||||||
Welcome to Dexorder Beta!
|
Welcome to Dexorder Beta!
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text>
|
|
||||||
This beta test uses mock coins on the Arbitrum Sepolia testnet.
|
|
||||||
</v-card-text>
|
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
Play with the order builder without an account by clicking on the <logo class="logo-small"/> logo or on
|
Play with the order builder without an account by clicking on the <logo class="logo-small"/> logo or on
|
||||||
the <v-icon icon="mdi-chart-timeline-variant"/> button.
|
the <v-icon icon="mdi-chart-timeline-variant"/> button.
|
||||||
|
|||||||
Reference in New Issue
Block a user