mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Update botcomparison type error
This commit is contained in:
parent
213b5c3af1
commit
3645f14da1
|
@ -58,6 +58,7 @@ import { formatPrice } from '@/shared/formatters';
|
||||||
import { defineComponent, computed } from 'vue';
|
import { defineComponent, computed } from 'vue';
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
import { ProfitInterface, ComparisonTableItems } from '@/types';
|
import { ProfitInterface, ComparisonTableItems } from '@/types';
|
||||||
|
import { TableField, TableItem } from 'bootstrap-vue-next';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'BotComparisonList',
|
name: 'BotComparisonList',
|
||||||
|
@ -65,7 +66,7 @@ export default defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
const botStore = useBotStore();
|
const botStore = useBotStore();
|
||||||
|
|
||||||
const tableFields: Record<string, string | Function>[] = [
|
const tableFields: TableField[] = [
|
||||||
{ key: 'botName', label: 'Bot' },
|
{ key: 'botName', label: 'Bot' },
|
||||||
{ key: 'trades', label: 'Trades' },
|
{ key: 'trades', label: 'Trades' },
|
||||||
{ key: 'profitOpen', label: 'Open Profit' },
|
{ key: 'profitOpen', label: 'Open Profit' },
|
||||||
|
@ -74,7 +75,7 @@ export default defineComponent({
|
||||||
{ key: 'winVsLoss', label: 'W/L' },
|
{ key: 'winVsLoss', label: 'W/L' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const tableItems = computed(() => {
|
const tableItems = computed<TableItem[]>(() => {
|
||||||
const val: ComparisonTableItems[] = [];
|
const val: ComparisonTableItems[] = [];
|
||||||
const summary: ComparisonTableItems = {
|
const summary: ComparisonTableItems = {
|
||||||
botId: undefined,
|
botId: undefined,
|
||||||
|
@ -121,7 +122,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
val.push(summary);
|
val.push(summary);
|
||||||
return val;
|
return val as unknown as TableItem[];
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user