From 6d5f56f35411effff1a8076571cf3b06b7d73225 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 26 Jun 2019 17:40:19 +0200 Subject: [PATCH] [Fix] Fixed setting of facet limit --- bower.json | 2 +- strolch-wc-reports-facet.html | 2 +- strolch-wc-reports.html | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 300dd0b..291167b 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-reports", "description": "Strolch WebComponent Reports", - "version": "0.2.2", + "version": "0.2.3", "authors": [ "Robert von Burg" ], diff --git a/strolch-wc-reports-facet.html b/strolch-wc-reports-facet.html index d7d5b74..0d2b203 100644 --- a/strolch-wc-reports-facet.html +++ b/strolch-wc-reports-facet.html @@ -250,7 +250,7 @@ if (newValue != null && oldValue != null) { this.$.ajaxGetFields.params = { query: newValue, - limit: Susi.Constants.limit + limit: this.facetLimit }; this.$.ajaxGetFields.generateRequest(); this.fire('ajax-running', {running: true}); diff --git a/strolch-wc-reports.html b/strolch-wc-reports.html index 818ae47..64de170 100644 --- a/strolch-wc-reports.html +++ b/strolch-wc-reports.html @@ -304,6 +304,7 @@ facet-id="[[facet.type]]" fields="[[facet.values]]" filter="[[allFilters]]" + facet-limit="[[facetLimit]]" on-ajax-running="onAjaxRunning"> @@ -533,6 +534,9 @@ // set the new report id this.filtersReady = false; this.set("reportId", this.reports[this.selectedReportIndex].id); + this.$.ajaxGetFacets.params = { + limit: this.facetLimit + }; this.$.ajaxGetFacets.generateRequest(); this.showLoadingOverlay(); },