1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-22 03:15:52 +01:00

Address input field indicative text based on nettype

This commit is contained in:
dsc 2019-02-20 06:29:44 +01:00
parent 0064e595c3
commit 235a1ee4b0
No known key found for this signature in database
GPG Key ID: 7BBC83D7A8810AAB

View File

@ -32,6 +32,7 @@ import QtQuick.Dialogs 1.2
import moneroComponents.Clipboard 1.0
import moneroComponents.PendingTransaction 1.0
import moneroComponents.Wallet 1.0
import moneroComponents.NetworkType 1.0
import "../components"
import "../components" as MoneroComponents
import "." 1.0
@ -216,7 +217,15 @@ Rectangle {
Address <font size='2'> ( </font> <a href='#'>Address book</a><font size='2'> )</font>")
+ translationManager.emptyString
labelButtonText: qsTr("Resolve") + translationManager.emptyString
placeholderText: "4.. / 8.. / OpenAlias"
placeholderText: {
if(persistentSettings.nettype == NetworkType.MAINNET){
return "4.. / 8.. / OpenAlias";
} else if (persistentSettings.nettype == NetworkType.STAGENET){
return "5.. / 7..";
} else if(persistentSettings.nettype == NetworkType.TESTNET){
return "9.. / B..";
}
}
wrapMode: Text.WrapAnywhere
addressValidation: true
onInputLabelLinkActivated: {