[Fix] Fixed setting of facet limit
This commit is contained in:
parent
42cec8cddc
commit
6d5f56f354
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "strolch-wc-reports",
|
"name": "strolch-wc-reports",
|
||||||
"description": "Strolch WebComponent Reports",
|
"description": "Strolch WebComponent Reports",
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Robert von Burg"
|
"Robert von Burg"
|
||||||
],
|
],
|
||||||
|
|
|
@ -250,7 +250,7 @@
|
||||||
if (newValue != null && oldValue != null) {
|
if (newValue != null && oldValue != null) {
|
||||||
this.$.ajaxGetFields.params = {
|
this.$.ajaxGetFields.params = {
|
||||||
query: newValue,
|
query: newValue,
|
||||||
limit: Susi.Constants.limit
|
limit: this.facetLimit
|
||||||
};
|
};
|
||||||
this.$.ajaxGetFields.generateRequest();
|
this.$.ajaxGetFields.generateRequest();
|
||||||
this.fire('ajax-running', {running: true});
|
this.fire('ajax-running', {running: true});
|
||||||
|
|
|
@ -304,6 +304,7 @@
|
||||||
facet-id="[[facet.type]]"
|
facet-id="[[facet.type]]"
|
||||||
fields="[[facet.values]]"
|
fields="[[facet.values]]"
|
||||||
filter="[[allFilters]]"
|
filter="[[allFilters]]"
|
||||||
|
facet-limit="[[facetLimit]]"
|
||||||
on-ajax-running="onAjaxRunning"></strolch-wc-reports-facet>
|
on-ajax-running="onAjaxRunning"></strolch-wc-reports-facet>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -533,6 +534,9 @@
|
||||||
// set the new report id
|
// set the new report id
|
||||||
this.filtersReady = false;
|
this.filtersReady = false;
|
||||||
this.set("reportId", this.reports[this.selectedReportIndex].id);
|
this.set("reportId", this.reports[this.selectedReportIndex].id);
|
||||||
|
this.$.ajaxGetFacets.params = {
|
||||||
|
limit: this.facetLimit
|
||||||
|
};
|
||||||
this.$.ajaxGetFacets.generateRequest();
|
this.$.ajaxGetFacets.generateRequest();
|
||||||
this.showLoadingOverlay();
|
this.showLoadingOverlay();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue