From 3ac8772546be88bda4b8bc44ff49fe53bd23803d Mon Sep 17 00:00:00 2001 From: mmbyday Date: Sun, 24 Feb 2019 13:25:11 -0800 Subject: [PATCH] addressbook: fix placeholder text for stagenet/testnet --- pages/AddressBook.qml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml index a908e467..b8c7967c 100644 --- a/pages/AddressBook.qml +++ b/pages/AddressBook.qml @@ -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