mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
addressbook: fix placeholder text for stagenet/testnet
This commit is contained in:
parent
f3a47dbff8
commit
3ac8772546
1 changed files with 13 additions and 1 deletions
|
@ -34,6 +34,7 @@ import "../js/TxUtils.js" as TxUtils
|
|||
import moneroComponents.AddressBook 1.0
|
||||
import moneroComponents.AddressBookModel 1.0
|
||||
import moneroComponents.Clipboard 1.0
|
||||
import moneroComponents.NetworkType 1.0
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
|
@ -53,7 +54,18 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
fontBold: true
|
||||
labelText: qsTr("Address") + translationManager.emptyString
|
||||
placeholderText: qsTr("4.. / 8.. / OpenAlias") + translationManager.emptyString
|
||||
placeholderText: {
|
||||
switch (persistentSettings.nettype) {
|
||||
case NetworkType.MAINNET:
|
||||
return "4.. / 8.. / OpenAlias";
|
||||
case NetworkType.STAGENET:
|
||||
return "5.. / 7..";
|
||||
case NetworkType.TESTNET:
|
||||
return "9.. / B..";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
wrapMode: Text.WrapAnywhere
|
||||
addressValidation: true
|
||||
pasteButton: true
|
||||
|
|
Loading…
Reference in a new issue