mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 20:23:52 +00:00
Merge pull request #2121 from xzmeng/fix-trade-select
Some checks failed
Some checks failed
Fix trade select
This commit is contained in:
commit
aec27859a6
|
@ -649,12 +649,10 @@ function initializeChartOptions() {
|
||||||
function updateSliderPosition() {
|
function updateSliderPosition() {
|
||||||
if (!props.sliderPosition) return;
|
if (!props.sliderPosition) return;
|
||||||
|
|
||||||
const start = timestampms(props.sliderPosition.startValue - props.dataset.timeframe_ms * 40);
|
const start = props.sliderPosition.startValue - props.dataset.timeframe_ms * 40;
|
||||||
const end = timestampms(
|
const end = props.sliderPosition.endValue
|
||||||
props.sliderPosition.endValue
|
? props.sliderPosition.endValue + props.dataset.timeframe_ms * 40
|
||||||
? props.sliderPosition.endValue + props.dataset.timeframe_ms * 40
|
: props.sliderPosition.startValue + props.dataset.timeframe_ms * 80;
|
||||||
: props.sliderPosition.startValue + props.dataset.timeframe_ms * 80,
|
|
||||||
);
|
|
||||||
if (candleChart.value) {
|
if (candleChart.value) {
|
||||||
candleChart.value.dispatchAction({
|
candleChart.value.dispatchAction({
|
||||||
type: 'dataZoom',
|
type: 'dataZoom',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user