Skip to content

Commit

Permalink
ELEMENTS-785: expose skipAggregates as a property
Browse files Browse the repository at this point in the history
  • Loading branch information
guirenard committed Oct 29, 2018
1 parent d79faa1 commit 07a732d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nuxeo-page-provider.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@
notify: true,
readOnly: true,
},

/**
* If `true`, aggregagtes from page provider definition will not be computed.
*/
skipAggregates: Boolean,
};
}

Expand Down Expand Up @@ -346,7 +351,7 @@
if (!this.headers) {
this.headers = {};
}
if (options && options.skipAggregates) {
if (this.skipAggregates || (options && options.skipAggregates)) {
this.headers.skipAggregates = 'true';
} else {
delete this.headers.skipAggregates;
Expand Down

0 comments on commit 07a732d

Please sign in to comment.