mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Address input field indicative text based on nettype
This commit is contained in:
parent
0064e595c3
commit
235a1ee4b0
@ -32,6 +32,7 @@ import QtQuick.Dialogs 1.2
|
|||||||
import moneroComponents.Clipboard 1.0
|
import moneroComponents.Clipboard 1.0
|
||||||
import moneroComponents.PendingTransaction 1.0
|
import moneroComponents.PendingTransaction 1.0
|
||||||
import moneroComponents.Wallet 1.0
|
import moneroComponents.Wallet 1.0
|
||||||
|
import moneroComponents.NetworkType 1.0
|
||||||
import "../components"
|
import "../components"
|
||||||
import "../components" as MoneroComponents
|
import "../components" as MoneroComponents
|
||||||
import "." 1.0
|
import "." 1.0
|
||||||
@ -216,7 +217,15 @@ Rectangle {
|
|||||||
Address <font size='2'> ( </font> <a href='#'>Address book</a><font size='2'> )</font>")
|
Address <font size='2'> ( </font> <a href='#'>Address book</a><font size='2'> )</font>")
|
||||||
+ translationManager.emptyString
|
+ translationManager.emptyString
|
||||||
labelButtonText: qsTr("Resolve") + 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
|
wrapMode: Text.WrapAnywhere
|
||||||
addressValidation: true
|
addressValidation: true
|
||||||
onInputLabelLinkActivated: {
|
onInputLabelLinkActivated: {
|
||||||
|
Loading…
Reference in New Issue
Block a user