diff --git a/components/HistoryTable.qml b/components/HistoryTable.qml index 5f4584c7..9a4e31f2 100644 --- a/components/HistoryTable.qml +++ b/components/HistoryTable.qml @@ -28,6 +28,8 @@ import QtQuick 2.0 import moneroComponents.Clipboard 1.0 +import moneroComponents.TransactionHistory 1.0 +import moneroComponents.TransactionInfo 1.0 ListView { @@ -37,7 +39,7 @@ ListView { property var previousItem property int rowSpacing: 12 - function buildTxDetailsString(tx_id, paymentId, tx_key,tx_note) { + function buildTxDetailsString(tx_id, paymentId, tx_key,tx_note, destinations) { var trStart = '', trMiddle = '', trEnd = ""; @@ -47,6 +49,7 @@ ListView { + (paymentId ? trStart + qsTr("Payment ID:") + trMiddle + paymentId + trEnd : "") + (tx_key ? trStart + qsTr("Tx key:") + trMiddle + tx_key + trEnd : "") + (tx_note ? trStart + qsTr("Tx note:") + trMiddle + tx_note + trEnd : "") + + (destinations ? trStart + qsTr("Destinations:") + trMiddle + destinations + trEnd : "") + "" + translationManager.emptyString; } @@ -71,6 +74,7 @@ ListView { id: detailsPopup cancelVisible: false okVisible: true + width:850 } @@ -96,12 +100,10 @@ ListView { pressedColor: "#FF4304" text: qsTr("Details") onClicked: { - console.log(hash) var tx_key = currentWallet.getTxKey(hash) var tx_note = currentWallet.getUserNote(hash) - console.log("key",tx_key); detailsPopup.title = "Transaction details"; - detailsPopup.content = buildTxDetailsString(hash,paymentId,tx_key,tx_note); + detailsPopup.content = buildTxDetailsString(hash,paymentId,tx_key,tx_note,destinations); detailsPopup.open(); }