From 7f1fa6bbd61b6e4e36b54fe8fca3902c2d8cd8ef Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 16 Apr 2019 13:25:01 +0200 Subject: [PATCH] Transfer: warn if description is a valid PID --- pages/Transfer.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 49c3089b..0f19c495 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -355,9 +355,19 @@ Rectangle { placeholderText: qsTr("Saved to local wallet history") + translationManager.emptyString Layout.fillWidth: true visible: descriptionCheckbox.checked + onTextChanged: { + paymentIdWarningBox.visible = walletManager.paymentIdValid(text) && !persistentSettings.showPid + } } } + MoneroComponents.WarningBox { + // @TODO: remove after pid removal hardfork + id: paymentIdWarningBox + text: qsTr("You can enable transfers with payment ID on the settings page.") + translationManager.emptyString; + visible: false + } + MoneroComponents.WarningBox { id: sendButtonWarningBox text: root.sendButtonWarning