Improve graphical layout, allow chart view without selected timeframe

This commit is contained in:
Matthias 2023-12-17 14:59:19 +01:00
parent 2bd8b21210
commit dfe662b4fe
3 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@
:options="botStore.activeBot.strategyList"
>
</b-form-select>
<div class="ms-2">
<div class="ms-1">
<b-button @click="botStore.activeBot.getStrategyList">
<i-mdi-refresh />
</b-button>

View File

@ -174,6 +174,7 @@ export interface StrategyResult {
strategy: string;
/** Code of the strategy class */
code: string;
timeframe: string;
}
export interface FreqAIModelListResult {

View File

@ -5,8 +5,8 @@
<!-- <b-form-checkbox v-model="historicView">HistoricData</b-form-checkbox> -->
<!-- </div> -->
<div v-if="botStore.activeBot.isWebserverMode" class="mx-md-3 mt-2">
<div class="d-flex flex-wrap">
<div class="col-md-3 text-start">
<div class="d-flex flex-wrap gap-1">
<div class="col-md-3 text-start me-1">
<span>Strategy</span>
<StrategySelect v-model="strategy" class="mt-1"></StrategySelect>
</div>
@ -27,7 +27,9 @@
"
:historic-view="botStore.activeBot.isWebserverMode"
:timeframe="
botStore.activeBot.isWebserverMode ? selectedTimeframe : botStore.activeBot.timeframe
botStore.activeBot.isWebserverMode
? selectedTimeframe || botStore.activeBot.strategy.timeframe || ''
: botStore.activeBot.timeframe
"
:trades="botStore.activeBot.trades"
:timerange="botStore.activeBot.isWebserverMode ? timerange : ''"