[Fix] Fixed setting of facet limit

This commit is contained in:
Robert von Burg 2019-06-26 17:40:19 +02:00
parent 42cec8cddc
commit 6d5f56f354
3 changed files with 6 additions and 2 deletions

View File

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

View File

@ -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});

View File

@ -304,6 +304,7 @@
facet-id="[[facet.type]]"
fields="[[facet.values]]"
filter="[[allFilters]]"
facet-limit="[[facetLimit]]"
on-ajax-running="onAjaxRunning"></strolch-wc-reports-facet>
</template>
</div>
@ -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();
},