diff options
| author | selsta <selsta@sent.at> | 2022-04-27 17:40:58 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2022-04-27 17:40:58 +0200 |
| commit | 2021d61d91c81b7f62fc3081e99bc5fa18ad9869 (patch) | |
| tree | 4a7b4e29ffe6776df1bc9e0205dea405e477e588 | |
| parent | b31cc36de2cc612060b2db63f42a5af42756a719 (diff) | |
| download | monzero-gui-2021d61d91c81b7f62fc3081e99bc5fa18ad9869.tar.gz monzero-gui-2021d61d91c81b7f62fc3081e99bc5fa18ad9869.tar.xz monzero-gui-2021d61d91c81b7f62fc3081e99bc5fa18ad9869.zip | |
TxConfirmationDialog: warn high fees
| -rw-r--r-- | components/TxConfirmationDialog.qml | 7 |
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 ""; |
