mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 12:35:15 +00:00
Fix lint warnings
This commit is contained in:
parent
c724abd655
commit
b781a45bee
|
@ -11,12 +11,12 @@ const emit = defineEmits<{ 'trade-select': [trade: Trade] }>();
|
||||||
|
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
const selectedTrade = ref({} as Trade);
|
const selectedTrade = ref({} as Trade);
|
||||||
const sortDescendingOrder = ref(true)
|
const sortDescendingOrder = ref(true);
|
||||||
const sortMethod = ref('openDate')
|
const sortMethod = ref('openDate');
|
||||||
const sortMethodOptions = [
|
const sortMethodOptions = [
|
||||||
{ text: 'Open date', value: 'openDate' },
|
{ text: 'Open date', value: 'openDate' },
|
||||||
{text: 'Profit', value: 'profit'},
|
{ text: 'Profit %', value: 'profit' },
|
||||||
]
|
];
|
||||||
|
|
||||||
const onTradeSelect = (trade: Trade) => {
|
const onTradeSelect = (trade: Trade) => {
|
||||||
selectedTrade.value = trade;
|
selectedTrade.value = trade;
|
||||||
|
@ -31,7 +31,7 @@ const sortedTrades = computed(() => {
|
||||||
sortDescendingOrder.value
|
sortDescendingOrder.value
|
||||||
? b.profit_ratio - a.profit_ratio
|
? b.profit_ratio - a.profit_ratio
|
||||||
: a.profit_ratio - b.profit_ratio,
|
: a.profit_ratio - b.profit_ratio,
|
||||||
)
|
);
|
||||||
} else {
|
} else {
|
||||||
return props.trades
|
return props.trades
|
||||||
.slice()
|
.slice()
|
||||||
|
@ -57,11 +57,7 @@ watch(
|
||||||
<div>
|
<div>
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
<span class="me-2">Sort by:</span>
|
<span class="me-2">Sort by:</span>
|
||||||
<BFormRadioGroup
|
<BFormRadioGroup v-model="sortMethod" :options="sortMethodOptions" name="radio-options" />
|
||||||
v-model="sortMethod"
|
|
||||||
:options="sortMethodOptions"
|
|
||||||
name="radio-options"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<BListGroup>
|
<BListGroup>
|
||||||
<BListGroupItem
|
<BListGroupItem
|
||||||
|
|
Loading…
Reference in New Issue
Block a user