history: print destination address in tx details popup

pull/2/head
Jaquee 8 years ago
parent 7aea3d38d6
commit 9341d75236

@ -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 = '<tr><td width="85" style="padding-top:5px"><b>',
trMiddle = '</b></td><td style="padding-left:10px;padding-top:5px;">',
trEnd = "</td></tr>";
@ -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 : "")
+ "</table>"
+ 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();
}