mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 03:42:05 +02:00
Merge pull request #1958
3ac8772
addressbook: fix placeholder text for stagenet/testnet (mmbyday)
This commit is contained in:
commit
eb71974e73
@ -34,6 +34,7 @@ import "../js/TxUtils.js" as TxUtils
|
|||||||
import moneroComponents.AddressBook 1.0
|
import moneroComponents.AddressBook 1.0
|
||||||
import moneroComponents.AddressBookModel 1.0
|
import moneroComponents.AddressBookModel 1.0
|
||||||
import moneroComponents.Clipboard 1.0
|
import moneroComponents.Clipboard 1.0
|
||||||
|
import moneroComponents.NetworkType 1.0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: root
|
id: root
|
||||||
@ -53,7 +54,18 @@ ColumnLayout {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
fontBold: true
|
fontBold: true
|
||||||
labelText: qsTr("Address") + translationManager.emptyString
|
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
|
wrapMode: Text.WrapAnywhere
|
||||||
addressValidation: true
|
addressValidation: true
|
||||||
pasteButton: true
|
pasteButton: true
|
||||||
|
Loading…
Reference in New Issue
Block a user