mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-28 23:56:22 +01:00
Transfer: warn on long Payment ID filled into description field
This commit is contained in:
parent
d3b81cb6f8
commit
947e265a1a
@ -56,7 +56,7 @@ Rectangle {
|
|||||||
property bool showAdvanced: false
|
property bool showAdvanced: false
|
||||||
// @TODO: remove after pid removal hardfork
|
// @TODO: remove after pid removal hardfork
|
||||||
property bool warningLongPidTransfer: false
|
property bool warningLongPidTransfer: false
|
||||||
property bool warningLongPidDescription: false
|
property bool warningLongPidDescription: descriptionLine.text.match(/^[0-9a-f]{64}$/i)
|
||||||
|
|
||||||
Clipboard { id: clipboard }
|
Clipboard { id: clipboard }
|
||||||
|
|
||||||
@ -331,6 +331,12 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoneroComponents.WarningBox {
|
||||||
|
text: qsTr("Description field contents match long payment ID format. \
|
||||||
|
Please don't paste long payment ID into description field, your funds might be lost.") + translationManager.emptyString;
|
||||||
|
visible: warningLongPidDescription
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 15
|
spacing: 15
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user