mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15: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
|
<b-button
|
||||||
id="start-backtest"
|
id="start-backtest"
|
||||||
variant="primary"
|
variant="primary"
|
||||||
:disabled="botStore.activeBot.backtestRunning || !botStore.activeBot.canRunBacktest"
|
:disabled="
|
||||||
|
!btStore.canRunBacktest ||
|
||||||
|
botStore.activeBot.backtestRunning ||
|
||||||
|
!botStore.activeBot.canRunBacktest
|
||||||
|
"
|
||||||
class="mx-1"
|
class="mx-1"
|
||||||
@click="clickBacktest"
|
@click="clickBacktest"
|
||||||
>
|
>
|
||||||
|
|
|
@ -20,6 +20,8 @@ export const useBtStore = defineStore('btStore', {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
getters: {},
|
getters: {
|
||||||
|
canRunBacktest: (state) => state.strategy !== '',
|
||||||
|
},
|
||||||
actions: {},
|
actions: {},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user