mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Show bot-name in dashboard open-trades view
This commit is contained in:
parent
3470cb2c16
commit
23986494f7
|
@ -109,6 +109,8 @@ export default class TradeList extends Vue {
|
||||||
|
|
||||||
@Prop({ default: false }) showFilter!: boolean;
|
@Prop({ default: false }) showFilter!: boolean;
|
||||||
|
|
||||||
|
@Prop({ default: false, type: Boolean }) multiBotView!: boolean;
|
||||||
|
|
||||||
@Prop({ default: 'No Trades to show.' }) emptyText!: string;
|
@Prop({ default: 'No Trades to show.' }) emptyText!: string;
|
||||||
|
|
||||||
@ftbot.Getter [BotStoreGetters.detailTradeId]?: number;
|
@ftbot.Getter [BotStoreGetters.detailTradeId]?: number;
|
||||||
|
@ -154,6 +156,7 @@ export default class TradeList extends Vue {
|
||||||
];
|
];
|
||||||
|
|
||||||
tableFields: Record<string, string | Function>[] = [
|
tableFields: Record<string, string | Function>[] = [
|
||||||
|
this.multiBotView ? { key: 'botName', label: 'Bot' } : {},
|
||||||
{ key: 'trade_id', label: 'ID' },
|
{ key: 'trade_id', label: 'ID' },
|
||||||
{ key: 'pair', label: 'Pair' },
|
{ key: 'pair', label: 'Pair' },
|
||||||
{ key: 'amount', label: 'Amount' },
|
{ key: 'amount', label: 'Amount' },
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
drag-allow-from=".drag-header"
|
drag-allow-from=".drag-header"
|
||||||
>
|
>
|
||||||
<DraggableContainer header="Open Trades">
|
<DraggableContainer header="Open Trades">
|
||||||
<trade-list :active-trades="true" :trades="allOpenTradesAllBots" />
|
<trade-list :active-trades="true" :trades="allOpenTradesAllBots" multi-bot-view />
|
||||||
</DraggableContainer>
|
</DraggableContainer>
|
||||||
</GridItem>
|
</GridItem>
|
||||||
<GridItem
|
<GridItem
|
||||||
|
|
Loading…
Reference in New Issue
Block a user