Skip to content

Commit

Permalink
ELEMENTS-1771:Allow option to configure Integer display Formatting nu…
Browse files Browse the repository at this point in the history
…xeo-checkbox-aggregation.js
  • Loading branch information
yashgupta-hyland committed Dec 3, 2024
1 parent 02ce737 commit 58a5e68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/nuxeo-aggregation/nuxeo-checkbox-aggregation.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ import { AggregationBehavior } from './nuxeo-aggregation-behavior.js';

_formatDocCount(docCount) {
// Fetch the property value from web-ui-properties.xml
const isNumberFormattingEnabled = Nuxeo && Nuxeo.UI && Nuxeo.UI.config && Nuxeo.UI.config.numberFormattingEnabled || false;
const isNumberFormattingEnabled = Nuxeo && Nuxeo.UI &&
Nuxeo.UI.config && Nuxeo.UI.config.numberFormattingEnabled || false;
if (isNumberFormattingEnabled) {
return new Intl.NumberFormat().format(docCount); // Apply formatting if enabled
}
Expand Down

0 comments on commit 58a5e68

Please sign in to comment.