Merge pull request #2718

e05e634 Keys: rename keys section to primary address & keys, add primary address (rating89us)
This commit is contained in:
luigi1111 2020-02-05 21:41:07 -05:00
commit 4b1a6eb49b
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -131,7 +131,7 @@ Rectangle {
Layout.fillWidth: true
fontSize: 22
Layout.topMargin: 10
text: qsTr("Keys") + translationManager.emptyString
text: qsTr("Primary address & Keys") + translationManager.emptyString
}
Rectangle {
Layout.fillWidth: true
@ -140,8 +140,18 @@ Rectangle {
opacity: MoneroComponents.Style.dividerOpacity
Layout.bottomMargin: 10
}
MoneroComponents.LineEditMulti {
Layout.fillWidth: true
id: primaryAddress
readOnly: true
copyButton: true
wrapMode: Text.Wrap
labelText: qsTr("Primary address") + translationManager.emptyString
fontSize: 16
}
MoneroComponents.LineEdit {
Layout.fillWidth: true
Layout.topMargin: 25
id: secretViewKey
readOnly: true
copyButton: true
@ -261,6 +271,7 @@ Rectangle {
function onPageCompleted() {
console.log("keys page loaded");
primaryAddress.text = currentWallet.address(0, 0)
walletCreationHeight.text = currentWallet.walletCreationHeight
secretViewKey.text = currentWallet.secretViewKey
publicViewKey.text = currentWallet.publicViewKey