From f3c26a303ccc3839c95932679e2c0d2c421786cd Mon Sep 17 00:00:00 2001 From: "raja.blaze" Date: Mon, 19 Aug 2019 16:23:16 +0530 Subject: [PATCH] Hover updated --- server/i18n/de.json | 2 ++ server/i18n/en.json | 2 ++ src/app/view/home/graph-list/graph-list.component.html | 4 ++-- src/app/view/home/graph-list/graph-list.component.ts | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/server/i18n/de.json b/server/i18n/de.json index 66303b7..f66fb89 100644 --- a/server/i18n/de.json +++ b/server/i18n/de.json @@ -48,6 +48,8 @@ "BOCKS_COUNT_HOVER" : "Heute Block Count", "TRANSACTION_FEE_HOVER" : "Heute Transaktionsgebühren insgesamt", "BLOCK_INTERVAL_HOVER" : "Heute Blockintervall in Sekunden", + "TRANSACTION_LINECHAT_HOVER" : "Heute Gesamtzahl der Transaktionen", + "BLOCK_INTERVAL_BW_BLOCKS_HOVER" : "Letztes Blockintervall in Sekunden", "BLOCK" : "Block", "BLOCKS_MINED" : "Blöcke abgebaut", "TRANSACTION_FEES" : "Transkationsgebühren", diff --git a/server/i18n/en.json b/server/i18n/en.json index 2f0acd4..5580684 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -48,6 +48,8 @@ "BOCKS_COUNT_HOVER" : "Today Block Count", "TRANSACTION_FEE_HOVER" : "Today Total Transaction Fees", "BLOCK_INTERVAL_HOVER" : "Today Block Interval in Secs", + "TRANSACTION_LINECHAT_HOVER" : "Today Total Transaction Count", + "BLOCK_INTERVAL_BW_BLOCKS_HOVER" : "Last Block Interval in Secs", "BLOCK" : "Block", "BLOCKS_MINED" : "Blocks Mined", "TRANSACTION_FEES" : "Transaction Fees", diff --git a/src/app/view/home/graph-list/graph-list.component.html b/src/app/view/home/graph-list/graph-list.component.html index 65dfe87..cb1e0e8 100644 --- a/src/app/view/home/graph-list/graph-list.component.html +++ b/src/app/view/home/graph-list/graph-list.component.html @@ -406,7 +406,7 @@

{{'home.BLOCKSINTERVAL' | translate}}

- {{ + {{ this.blockinteval_last | number }}
@@ -492,7 +492,7 @@

{{'home.TRANSACTIONS_VS_DATE' | translate}}

- {{ + {{ this.tg_last | number }} diff --git a/src/app/view/home/graph-list/graph-list.component.ts b/src/app/view/home/graph-list/graph-list.component.ts index f27130c..0789447 100644 --- a/src/app/view/home/graph-list/graph-list.component.ts +++ b/src/app/view/home/graph-list/graph-list.component.ts @@ -223,7 +223,8 @@ export class GraphListComponent implements OnInit { let Ttotalinput = res.response.totalinput; let Ttotalkernal = res.response.totalkernal; let Ttotaloutput = res.response.totaloutput; - this.tg_last = Ttotaloutput[Ttotaloutput.length - 1]; + let today_date_index = Tdate.indexOf(moment(Date.now()).format('YYYY-MM-DD')); + this.tg_last = Ttotalinput[today_date_index] + Ttotalkernal[today_date_index] + Ttotaloutput[today_date_index]; this.transactionlinechartFunc( Tdate, Ttotalinput,