From f6505166fc53471a5715d6db0dca0501fc88cfc8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 18 Sep 2021 16:32:08 +0200 Subject: [PATCH] Remove botKPI's from dashboard --- src/store/modules/layout.ts | 21 ++++++-------- src/views/Dashboard.vue | 55 ------------------------------------- 2 files changed, 9 insertions(+), 67 deletions(-) diff --git a/src/store/modules/layout.ts b/src/store/modules/layout.ts index 8dd51504..4a9613d2 100644 --- a/src/store/modules/layout.ts +++ b/src/store/modules/layout.ts @@ -11,7 +11,6 @@ export enum TradeLayout { } export enum DashboardLayout { - KPI = 'g-kpi', dailyChart = 'g-dailyChart', botComparison = 'g-botComparison', allOpenTrades = 'g-allOpenTrades', @@ -51,21 +50,19 @@ const DEFAULT_TRADING_LAYOUT: GridItemData[] = [ ]; const DEFAULT_DASHBOARD_LAYOUT: GridItemData[] = [ - { i: DashboardLayout.KPI, x: 0, y: 0, w: 4, h: 6 }, - { i: DashboardLayout.dailyChart, x: 4, y: 0, w: 4, h: 6 }, - { i: DashboardLayout.botComparison, x: 0, y: 6, w: 6, h: 6 } /* Bot Comparison */, - { i: DashboardLayout.allOpenTrades, x: 6, y: 6, w: 6, h: 6 }, - { i: DashboardLayout.cumChartChart, x: 8, y: 0, w: 4, h: 6 }, + { i: DashboardLayout.botComparison, x: 0, y: 0, w: 8, h: 6 } /* Bot Comparison */, + { i: DashboardLayout.dailyChart, x: 8, y: 0, w: 4, h: 6 }, + { i: DashboardLayout.allOpenTrades, x: 0, y: 6, w: 8, h: 6 }, + { i: DashboardLayout.cumChartChart, x: 8, y: 6, w: 4, h: 6 }, { i: DashboardLayout.tradesLogChart, x: 0, y: 12, w: 12, h: 4 }, ]; const DEFAULT_DASHBOARD_LAYOUT_SM: GridItemData[] = [ - { i: DashboardLayout.KPI, x: 0, y: 0, w: 12, h: 6 }, - { i: DashboardLayout.botComparison, x: 0, y: 6, w: 12, h: 6 } /* Bot Comparison */, - { i: DashboardLayout.allOpenTrades, x: 0, y: 12, w: 12, h: 8 }, - { i: DashboardLayout.dailyChart, x: 0, y: 20, w: 12, h: 6 }, - { i: DashboardLayout.cumChartChart, x: 0, y: 26, w: 12, h: 6 }, - { i: DashboardLayout.tradesLogChart, x: 0, y: 32, w: 12, h: 4 }, + { i: DashboardLayout.botComparison, x: 0, y: 0, w: 12, h: 6 } /* Bot Comparison */, + { i: DashboardLayout.allOpenTrades, x: 0, y: 6, w: 12, h: 8 }, + { i: DashboardLayout.dailyChart, x: 0, y: 14, w: 12, h: 6 }, + { i: DashboardLayout.cumChartChart, x: 0, y: 20, w: 12, h: 6 }, + { i: DashboardLayout.tradesLogChart, x: 0, y: 26, w: 12, h: 4 }, ]; const STORE_DASHBOARD_LAYOUT = 'ftDashboardLayout'; diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 3a57deec..76ffdc49 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -13,55 +13,6 @@ @layout-updated="layoutUpdated" @breakpoint-changed="breakpointChanged" > - - - - - - {{ openTrades.length }} / - {{ profit.trade_count }} - - - - - {{ profit.winning_trades }} / - {{ profit.losing_trades }} - - - - {{ profit.latest_trade_date }} - - - - - {{ profit.best_pair }} - - - {{ - formatPrice(balance.total, botState ? botState.stake_currency_decimals || 8 : 8) - }} - {{ dailyStats.stake_currency }} - - - {{ formatPrice(profit.profit_closed_fiat, 2) }} - {{ dailyStats.fiat_display_currency }} - - - -