Improve styling, disable already loaded results

This commit is contained in:
Matthias 2023-08-03 06:25:38 +02:00
parent 6842e6380d
commit 0731289791
2 changed files with 11 additions and 3 deletions

View File

@ -12,12 +12,13 @@
Load Historic results from disk. You can click on multiple results to load all of them into
freqUI.
</p>
<b-list-group v-if="botStore.activeBot.backtestHistoryList" class="ms-2">
<b-list-group v-if="botStore.activeBot.backtestHistoryList" class="ms-2 mb-1">
<b-list-group-item
v-for="(res, idx) in botStore.activeBot.backtestHistoryList"
:key="idx"
class="d-flex justify-content-between align-items-center py-1 mb-1"
class="d-flex justify-content-between align-items-center py-1"
button
:disabled="res.run_id in botStore.activeBot.backtestHistory"
@click="botStore.activeBot.getBacktestHistoryResult(res)"
>
<strong>{{ res.strategy }}</strong>
@ -33,6 +34,7 @@
class="ms-1"
size="sm"
title="Delete this Result."
:disabled="res.run_id in botStore.activeBot.backtestHistory"
@click.stop="deleteBacktestResult(res)"
>
<i-mdi-delete />

View File

@ -80,6 +80,12 @@
background: $bg-dark;
}
.list-group-item.disabled,
.list-group-item:disabled {
color: darken($fg-color, 40%);
background: $bg-dark;
}
// .custom-select {
// color: $fg-color;
// // background: $bg-dark;