From 205bfcdd7bf051440cda231fc49e7f58d8c1a7ee Mon Sep 17 00:00:00 2001 From: Jaquee Date: Thu, 12 Jan 2017 19:57:30 +0100 Subject: History: Show num of confirmations + unconfirmed payments history: refresh on new block --- components/HistoryTable.qml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/HistoryTable.qml b/components/HistoryTable.qml index ba956015..711bc289 100644 --- a/components/HistoryTable.qml +++ b/components/HistoryTable.qml @@ -263,9 +263,18 @@ ListView { //elide: Text.ElideRight font.family: "Arial" font.pixelSize: 13 - font.letterSpacing: -1 - color: "#545454" - text: (typeof blockHeight != "undefined")? blockHeight : qsTr("Pending") + translationManager.emptyString + color: (confirmations < 10)? "#FF6C3C" : "#545454" + text: { + if (!isPending) + if(confirmations < 10) + return blockHeight + " " + qsTr("(%1/10 confirmations)").arg(confirmations) + else + return blockHeight + if (!isOut) + return qsTr("UNCONFIRMED") + translationManager.emptyString + return qsTr("PENDING") + translationManager.emptyString + + } } } -- cgit v1.2.3