Show bot-name in dashboard open-trades view

This commit is contained in:
Matthias 2021-09-18 20:00:48 +02:00
parent 3470cb2c16
commit 23986494f7
2 changed files with 4 additions and 1 deletions

View File

@ -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' },

View File

@ -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