aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-04-27 21:55:34 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-04-27 21:55:34 -0500
commit2e2ae5c88fdc159477e8bc9ad871a892da83e935 (patch)
treedb4c6c742e100ec35d8d3a88153d7676dbce17c3 /components
parent46d0b6b0ff9334324f3975de93504eed6174717b (diff)
parent2021d61d91c81b7f62fc3081e99bc5fa18ad9869 (diff)
downloadmonzero-gui-2e2ae5c88fdc159477e8bc9ad871a892da83e935.tar.gz
monzero-gui-2e2ae5c88fdc159477e8bc9ad871a892da83e935.tar.xz
monzero-gui-2e2ae5c88fdc159477e8bc9ad871a892da83e935.zip
Merge pull request #3897
2021d61 TxConfirmationDialog: warn high fees (selsta)
Diffstat (limited to 'components')
-rw-r--r--components/TxConfirmationDialog.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/TxConfirmationDialog.qml b/components/TxConfirmationDialog.qml
index b35a3b30..711aba78 100644
--- a/components/TxConfirmationDialog.qml
+++ b/components/TxConfirmationDialog.qml
@@ -338,8 +338,9 @@ Rectangle {
spacing: 16
Text {
- color: MoneroComponents.Style.defaultFontColor
- font.pixelSize: 15
+ property bool maliciousTxFee: parseFloat(root.transactionFee) > 0.01
+ color: maliciousTxFee ? "red" : MoneroComponents.Style.defaultFontColor
+ font.pixelSize: maliciousTxFee ? 20 : 15
text: {
if (currentWallet) {
if (!root.transactionFee) {
@@ -349,7 +350,7 @@ Rectangle {
return qsTr("Calculating fee") + "..." + translationManager.emptyString;
}
} else {
- return root.transactionFee + " XMR"
+ return root.transactionFee + " XMR" + (maliciousTxFee ? " (HIGH FEE)" : "")
}
} else {
return "";