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 58a5e68 commit c35d8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/nuxeo-aggregation/nuxeo-checkbox-aggregation.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +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 c35d8ca

Please sign in to comment.