mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Merge pull request #2263
14619b9
History: don't reset date filtering when switching page (selsta)
This commit is contained in:
commit
702b654f09
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue