mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Disable start button if no strategy is selected
This commit is contained in:
parent
dbbaac090d
commit
26e89f2185
|
@ -167,7 +167,11 @@
|
|||
<b-button
|
||||
id="start-backtest"
|
||||
variant="primary"
|
||||
:disabled="botStore.activeBot.backtestRunning || !botStore.activeBot.canRunBacktest"
|
||||
:disabled="
|
||||
!btStore.canRunBacktest ||
|
||||
botStore.activeBot.backtestRunning ||
|
||||
!botStore.activeBot.canRunBacktest
|
||||
"
|
||||
class="mx-1"
|
||||
@click="clickBacktest"
|
||||
>
|
||||
|
|
|
@ -20,6 +20,8 @@ export const useBtStore = defineStore('btStore', {
|
|||
},
|
||||
};
|
||||
},
|
||||
getters: {},
|
||||
getters: {
|
||||
canRunBacktest: (state) => state.strategy !== '',
|
||||
},
|
||||
actions: {},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user