From 26e89f2185e01f69db7e9e040158b33af78eb4f4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 27 Dec 2023 19:55:19 +0100 Subject: [PATCH] Disable start button if no strategy is selected --- src/components/ftbot/BacktestRun.vue | 6 +++++- src/stores/btStore.ts | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/BacktestRun.vue b/src/components/ftbot/BacktestRun.vue index 26499c87..5bd68130 100644 --- a/src/components/ftbot/BacktestRun.vue +++ b/src/components/ftbot/BacktestRun.vue @@ -167,7 +167,11 @@ diff --git a/src/stores/btStore.ts b/src/stores/btStore.ts index b8df2251..d986c2f6 100644 --- a/src/stores/btStore.ts +++ b/src/stores/btStore.ts @@ -20,6 +20,8 @@ export const useBtStore = defineStore('btStore', { }, }; }, - getters: {}, + getters: { + canRunBacktest: (state) => state.strategy !== '', + }, actions: {}, });