diff options
Diffstat (limited to 'pages/Transfer.qml')
| -rw-r--r-- | pages/Transfer.qml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 0524385f..fe3c6c21 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -535,6 +535,30 @@ Rectangle { submitTxDialog.open(); } } + + StandardButton { + id: exportKeyImagesButton + text: qsTr("Export key images") + translationManager.emptyString + small: true + visible: !appWindow.viewOnly + enabled: pageRoot.enabled + onClicked: { + console.log("Transfer: export key images clicked") + exportKeyImagesDialog.open(); + } + } + + StandardButton { + id: importKeyImagesButton + text: qsTr("Import key images") + translationManager.emptyString + small: true + visible: appWindow.viewOnly && walletManager.isDaemonLocal(appWindow.currentDaemonAddress) + enabled: pageRoot.enabled + onClicked: { + console.log("Transfer: import key images clicked") + importKeyImagesDialog.open(); + } + } } } @@ -626,6 +650,35 @@ Rectangle { } } + + //ExportKeyImagesDialog + FileDialog { + id: exportKeyImagesDialog + selectMultiple: false + selectExisting: false + onAccepted: { + console.log(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl)) + currentWallet.exportKeyImages(walletManager.urlToLocalPath(exportKeyImagesDialog.fileUrl)); + } + onRejected: { + console.log("Canceled"); + } + } + + //ImportKeyImagesDialog + FileDialog { + id: importKeyImagesDialog + selectMultiple: false + selectExisting: true + title: qsTr("Please choose a file") + translationManager.emptyString + onAccepted: { + console.log(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl)) + currentWallet.importKeyImages(walletManager.urlToLocalPath(importKeyImagesDialog.fileUrl)); + } + onRejected: { + console.log("Canceled"); + } + } |
