mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Update pair init logic for candlecharts
This commit is contained in:
parent
ccfe3e0e97
commit
4ed0bb46e4
|
@ -143,7 +143,11 @@ export default class CandleChartContainer extends Vue {
|
|||
}
|
||||
|
||||
mounted() {
|
||||
this.pair = this.selectedPair;
|
||||
if (this.selectedPair) {
|
||||
this.pair = this.selectedPair;
|
||||
} else if (this.availablePairs.length > 0) {
|
||||
[this.pair] = this.availablePairs;
|
||||
}
|
||||
this.plotConfigName = getPlotConfigName();
|
||||
this.plotConfig = getCustomPlotConfig(this.plotConfigName);
|
||||
}
|
||||
|
|
|
@ -78,10 +78,12 @@ export default class Graphs extends Vue {
|
|||
if (!this.whitelist || this.whitelist.length === 0) {
|
||||
this.getWhitelist();
|
||||
}
|
||||
// this.refresh();
|
||||
this.getAvailablePairs({ timeframe: this.timeframe }).then((val) => {
|
||||
// console.log(val);
|
||||
});
|
||||
if (this.historicView) {
|
||||
// this.refresh();
|
||||
this.getAvailablePairs({ timeframe: this.timeframe }).then((val) => {
|
||||
// console.log(val);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user