diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 6c898679..abf60e42 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -84,7 +84,7 @@ drag-allow-from=".drag-header" > - + @@ -110,14 +110,7 @@ import { LayoutActions, LayoutGetters, } from '@/store/modules/layout'; -import { - Trade, - DailyReturnValue, - ProfitInterface, - DailyPayload, - BotState, - ClosedTrade, -} from '@/types'; +import { Trade, DailyReturnValue, DailyPayload, ClosedTrade } from '@/types'; import { BotStoreGetters } from '@/store/modules/ftbot'; import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper'; @@ -137,8 +130,6 @@ const layoutNs = namespace('layout'); }, }) export default class Dashboard extends Vue { - @ftbot.Getter closedTrades!: Trade[]; - @ftbot.Getter [MultiBotStoreGetters.botCount]!: number; @ftbot.Getter [MultiBotStoreGetters.allOpenTradesAllBots]!: Trade[]; @@ -147,12 +138,6 @@ export default class Dashboard extends Vue { @ftbot.Getter [MultiBotStoreGetters.allDailyStatsAllBots]!: Record; - @ftbot.Getter [BotStoreGetters.openTrades]!: Array; - - @ftbot.Getter [BotStoreGetters.botState]?: BotState; - - @ftbot.Getter [BotStoreGetters.profit]!: ProfitInterface; - @ftbot.Getter [BotStoreGetters.performanceStats]!: PerformanceEntry[]; @ftbot.Action getPerformance; @@ -162,6 +147,10 @@ export default class Dashboard extends Vue { @ftbot.Action getTrades; + @ftbot.Action getOpenTrades; + + @ftbot.Action getProfit; + @layoutNs.Getter [LayoutGetters.getDashboardLayoutSm]!: GridItemData[]; @layoutNs.Getter [LayoutGetters.getDashboardLayout]!: GridItemData[]; @@ -170,10 +159,6 @@ export default class Dashboard extends Vue { @layoutNs.Getter [LayoutGetters.getLayoutLocked]: boolean; - @ftbot.Action getOpenTrades; - - @ftbot.Action getProfit; - formatPrice = formatPrice; localGridLayout: GridItemData[] = [];