From fbe1de116451b3302c3c663a78b3460fa07ec9f9 Mon Sep 17 00:00:00 2001 From: mmbyday Date: Fri, 3 May 2019 00:35:16 -0700 Subject: [PATCH] keys: ux improvements for hardware device wallet --- pages/Keys.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/Keys.qml b/pages/Keys.qml index ecde8db9..c74a14a9 100644 --- a/pages/Keys.qml +++ b/pages/Keys.qml @@ -228,7 +228,7 @@ Rectangle { secretSpendKey.text = (!currentWallet.viewOnly) ? currentWallet.secretSpendKey : "" publicSpendKey.text = currentWallet.publicSpendKey - seedText.text = currentWallet.seed + seedText.text = currentWallet.seed === "" ? qsTr("Mnemonic seed protected by hardware device.") + translationManager.emptyString : currentWallet.seed if(typeof currentWallet != "undefined") { viewOnlyQRCode.source = "image://qrcode/monero_wallet:" + currentWallet.address(0, 0) + "?view_key="+currentWallet.secretViewKey+"&height="+currentWallet.walletCreationHeight @@ -241,6 +241,13 @@ Rectangle { seedText.text = qsTr("(View Only Wallet - No mnemonic seed available)") + translationManager.emptyString secretSpendKey.text = qsTr("(View Only Wallet - No secret spend key available)") + translationManager.emptyString } + // hardware device wallet + if(currentWallet.seed === "") { + showFullQr.visible = false + viewOnlyQRCode.visible = true + showViewOnlyQr.visible = false + secretSpendKey.text = qsTr("(Hardware Device Wallet - No secret spend key available)") + translationManager.emptyString + } } }