From 4ea59e1309aaf979bfd6369747b2bb3669dd7b3a Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Mon, 6 Sep 2021 17:11:44 +0200 Subject: [PATCH] [Fix] Fixed missing date filter update --- bower.json | 2 +- strolch-wc-reports.html | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index ed0d4b1..7d2d2ae 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-reports", "description": "Strolch WebComponent Reports", - "version": "0.3.0", + "version": "0.3.1", "authors": [ "Robert von Burg" ], diff --git a/strolch-wc-reports.html b/strolch-wc-reports.html index 87d4042..b5efbbd 100644 --- a/strolch-wc-reports.html +++ b/strolch-wc-reports.html @@ -455,11 +455,13 @@ }, fromDate: { type: Date, - value: null + value: null, + observer: 'dateFilterChanged' }, toDate: { type: Date, - value: null + value: null, + observer: 'dateFilterChanged' }, propagateShowDialog: { type: Boolean, @@ -501,6 +503,10 @@ this.hideLoadingOverlay(); } }, + dateFilterChanged: function (newValue) { + if (newValue != null) + this.queryReports(); + }, /* Listeners */ listeners: {