mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-13 11:56:32 +02:00
History: amount filter: empty line disables filter
This commit is contained in:
parent
69b4d461c8
commit
328b7b05d8
@ -233,10 +233,16 @@ Rectangle {
|
|||||||
if (advancedFilteringCheckBox.checked) {
|
if (advancedFilteringCheckBox.checked) {
|
||||||
if (amountFromLine.text.length) {
|
if (amountFromLine.text.length) {
|
||||||
model.amountFromFilter = parseFloat(amountFromLine.text)
|
model.amountFromFilter = parseFloat(amountFromLine.text)
|
||||||
|
} else {
|
||||||
|
// negative value disables filter here;
|
||||||
|
model.amountFromFilter = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amountToLine.text.length) {
|
if (amountToLine.text.length) {
|
||||||
model.amountToFilter = parseFloat(amountToLine.text)
|
model.amountToFilter = parseFloat(amountToLine.text)
|
||||||
|
} else {
|
||||||
|
// negative value disables filter here;
|
||||||
|
model.amountToFilter = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
var directionFilter = transactionsModel.get(transactionTypeDropdown.currentIndex).value
|
var directionFilter = transactionsModel.get(transactionTypeDropdown.currentIndex).value
|
||||||
@ -319,11 +325,6 @@ Rectangle {
|
|||||||
validator: DoubleValidator {
|
validator: DoubleValidator {
|
||||||
locale: "C"
|
locale: "C"
|
||||||
notation: DoubleValidator.StandardNotation
|
notation: DoubleValidator.StandardNotation
|
||||||
bottom: 0.0
|
|
||||||
top: {
|
|
||||||
console.log("top");
|
|
||||||
parseFloat(amountToLine.text)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,10 +350,6 @@ Rectangle {
|
|||||||
validator: DoubleValidator {
|
validator: DoubleValidator {
|
||||||
locale: "C"
|
locale: "C"
|
||||||
notation: DoubleValidator.StandardNotation
|
notation: DoubleValidator.StandardNotation
|
||||||
bottom: {
|
|
||||||
console.log("Botton")
|
|
||||||
parseFloat(amountFromLine.text)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user