From f5636273f473c78afe56b03f52f15c17d152288a Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 24 Aug 2020 20:24:16 +0200 Subject: [PATCH] Enforce selection of one pair (disable refresh button if no pair is selected) --- src/views/Graphs.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/Graphs.vue b/src/views/Graphs.vue index be22a63b..fe33d7ab 100644 --- a/src/views/Graphs.vue +++ b/src/views/Graphs.vue @@ -5,7 +5,7 @@ HistoricData
- +
@@ -44,7 +44,7 @@ const ftbot = namespace('ftbot'); components: { CandleChartContainer, StrategyList, TimeRangeSelect }, }) export default class Graphs extends Vue { - pair = 'XRP/USDT'; + pair = ''; timeframe = '5m'; @@ -81,7 +81,9 @@ export default class Graphs extends Vue { mounted() { this.getWhitelist(); this.refresh(); - this.getAvailablePairs({ timeframe: this.timeframe }); + this.getAvailablePairs({ timeframe: this.timeframe }).then((val) => { + console.log(val); + }); } get dataset() {