Merge pull request #2263

14619b9 History: don't reset date filtering when switching page (selsta)
This commit is contained in:
luigi1111 2019-07-12 20:39:27 -05:00
commit 702b654f09
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -1345,12 +1345,14 @@ Rectangle {
root.updateDisplay(root.txOffset, root.txMax);
}
function reset() {
function reset(keepDate) {
root.txOffset = 0;
if (typeof root.model !== 'undefined' && root.model != null) {
root.model.dateFromFilter = "2014-04-18" // genesis block
root.model.dateToFilter = "9999-09-09" // fix before september 9999
if (!keepDate) {
root.model.dateFromFilter = "2014-04-18" // genesis block
root.model.dateToFilter = "9999-09-09" // fix before september 9999
}
// negative values disable filters here;
root.model.amountFromFilter = -1;
root.model.amountToFilter = -1;
@ -1707,6 +1709,6 @@ Rectangle {
function onPageClosed(){
root.initialized = false;
root.reset();
root.reset(true);
}
}