1
0

qml: show explanatory text when sharing partially signed tx

after creating a multisig transaction
This commit is contained in:
Sander van Grieken
2023-03-29 11:39:40 +02:00
parent aaad1cf286
commit 288b7cd3bc
3 changed files with 9 additions and 7 deletions

View File

@@ -51,13 +51,12 @@ ElDialog {
} }
} }
Label { InfoTextArea {
Layout.fillWidth: true
Layout.margins: constants.paddingLarge
visible: dialog.text_help visible: dialog.text_help
text: dialog.text_help text: dialog.text_help
wrapMode: Text.Wrap
Layout.fillWidth: true
} }
} }
} }

View File

@@ -24,8 +24,11 @@ Pane {
app.stack.pop() app.stack.pop()
} }
function showExport() { function showExport(helptext) {
var dialog = exportTxDialog.createObject(root, { txdetails: txdetails }) var dialog = exportTxDialog.createObject(root, {
txdetails: txdetails,
text_help: helptext
})
dialog.open() dialog.open()
} }

View File

@@ -400,7 +400,7 @@ Item {
onFinishedSave: { onFinishedSave: {
// tx was (partially) signed and saved. Show QR for co-signers or online wallet // tx was (partially) signed and saved. Show QR for co-signers or online wallet
var page = app.stack.push(Qt.resolvedUrl('TxDetails.qml'), { txid: txid }) var page = app.stack.push(Qt.resolvedUrl('TxDetails.qml'), { txid: txid })
page.showExport() page.showExport(qsTr('Transaction created and partially signed by this wallet. Present this QR code to the next co-signer'))
_confirmPaymentDialog.destroy() _confirmPaymentDialog.destroy()
} }
} }