mirror of
https://github.com/monero-project/monero-gui
synced 2025-01-02 21:26:24 +01:00
history: print destination address in tx details popup
This commit is contained in:
parent
7aea3d38d6
commit
9341d75236
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import moneroComponents.Clipboard 1.0
|
import moneroComponents.Clipboard 1.0
|
||||||
|
import moneroComponents.TransactionHistory 1.0
|
||||||
|
import moneroComponents.TransactionInfo 1.0
|
||||||
|
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
@ -37,7 +39,7 @@ ListView {
|
|||||||
property var previousItem
|
property var previousItem
|
||||||
property int rowSpacing: 12
|
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>',
|
var trStart = '<tr><td width="85" style="padding-top:5px"><b>',
|
||||||
trMiddle = '</b></td><td style="padding-left:10px;padding-top:5px;">',
|
trMiddle = '</b></td><td style="padding-left:10px;padding-top:5px;">',
|
||||||
trEnd = "</td></tr>";
|
trEnd = "</td></tr>";
|
||||||
@ -47,6 +49,7 @@ ListView {
|
|||||||
+ (paymentId ? trStart + qsTr("Payment ID:") + trMiddle + paymentId + trEnd : "")
|
+ (paymentId ? trStart + qsTr("Payment ID:") + trMiddle + paymentId + trEnd : "")
|
||||||
+ (tx_key ? trStart + qsTr("Tx key:") + trMiddle + tx_key + trEnd : "")
|
+ (tx_key ? trStart + qsTr("Tx key:") + trMiddle + tx_key + trEnd : "")
|
||||||
+ (tx_note ? trStart + qsTr("Tx note:") + trMiddle + tx_note + trEnd : "")
|
+ (tx_note ? trStart + qsTr("Tx note:") + trMiddle + tx_note + trEnd : "")
|
||||||
|
+ (destinations ? trStart + qsTr("Destinations:") + trMiddle + destinations + trEnd : "")
|
||||||
+ "</table>"
|
+ "</table>"
|
||||||
+ translationManager.emptyString;
|
+ translationManager.emptyString;
|
||||||
}
|
}
|
||||||
@ -71,6 +74,7 @@ ListView {
|
|||||||
id: detailsPopup
|
id: detailsPopup
|
||||||
cancelVisible: false
|
cancelVisible: false
|
||||||
okVisible: true
|
okVisible: true
|
||||||
|
width:850
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -96,12 +100,10 @@ ListView {
|
|||||||
pressedColor: "#FF4304"
|
pressedColor: "#FF4304"
|
||||||
text: qsTr("Details")
|
text: qsTr("Details")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
console.log(hash)
|
|
||||||
var tx_key = currentWallet.getTxKey(hash)
|
var tx_key = currentWallet.getTxKey(hash)
|
||||||
var tx_note = currentWallet.getUserNote(hash)
|
var tx_note = currentWallet.getUserNote(hash)
|
||||||
console.log("key",tx_key);
|
|
||||||
detailsPopup.title = "Transaction details";
|
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();
|
detailsPopup.open();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user