[Fix] Fixed missing date filter update

This commit is contained in:
Robert von Burg 2021-09-06 17:11:44 +02:00
parent 402a028ca4
commit 4ea59e1309
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "strolch-wc-reports", "name": "strolch-wc-reports",
"description": "Strolch WebComponent Reports", "description": "Strolch WebComponent Reports",
"version": "0.3.0", "version": "0.3.1",
"authors": [ "authors": [
"Robert von Burg" "Robert von Burg"
], ],

View File

@ -455,11 +455,13 @@
}, },
fromDate: { fromDate: {
type: Date, type: Date,
value: null value: null,
observer: 'dateFilterChanged'
}, },
toDate: { toDate: {
type: Date, type: Date,
value: null value: null,
observer: 'dateFilterChanged'
}, },
propagateShowDialog: { propagateShowDialog: {
type: Boolean, type: Boolean,
@ -501,6 +503,10 @@
this.hideLoadingOverlay(); this.hideLoadingOverlay();
} }
}, },
dateFilterChanged: function (newValue) {
if (newValue != null)
this.queryReports();
},
/* Listeners */ /* Listeners */
listeners: { listeners: {