chart config tweak

This commit is contained in:
tim
2024-11-05 16:58:57 -04:00
parent 28dd64b1cf
commit 99a6cc1742
3 changed files with 13 additions and 6 deletions

View File

@@ -214,9 +214,7 @@ watch(selected, async ()=>{
// switch symbol
deleteOrderShapes()
await setSymbol(symbol)
console.log('change symbol completed')
}
console.log('creating order shape', id)
orderShapes[id] = new OrderShapes(symbol, status)
}
}
@@ -228,14 +226,12 @@ function deleteOrderShapes(keepSet={}) {
const keys = [...Object.keys(orderShapes)]
for (const id of keys) {
if (!(id in keepSet)) {
console.log('deleting order shape', id)
orderShapes[id].delete()
delete orderShapes[id]
}
}
}
const orderShapes = {}
onUnmounted(()=>{