From c7a114090b871cd43f090f2199fe4c100ca6f9cf Mon Sep 17 00:00:00 2001 From: Edoardo Sabadelli Date: Wed, 21 Feb 2024 11:05:18 +0100 Subject: [PATCH] feat: implement skipRounding option (DHIS2-16870) --- src/components/DownloadMenu/useDownload.js | 5 ++++- src/modules/options/outlierTableConfig.js | 12 ++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/DownloadMenu/useDownload.js b/src/components/DownloadMenu/useDownload.js index 0d4a4e10dc..6776a08c17 100644 --- a/src/components/DownloadMenu/useDownload.js +++ b/src/components/DownloadMenu/useDownload.js @@ -119,7 +119,10 @@ const useDownload = (relativePeriodDate) => { req = getAnalyticsRequestForOutlierTable({ analyticsEngine, visualization, - options: { showHierarchy: visualization.showHierarchy }, + options: { + showHierarchy: visualization.showHierarchy, + skipRounding: visualization.skipRounding, + }, forDownload: true, }) diff --git a/src/modules/options/outlierTableConfig.js b/src/modules/options/outlierTableConfig.js index a8820591a1..2e29b45619 100644 --- a/src/modules/options/outlierTableConfig.js +++ b/src/modules/options/outlierTableConfig.js @@ -5,16 +5,20 @@ import FontSize from '../../components/VisualizationOptions/Options/FontSize.js' import Outliers from '../../components/VisualizationOptions/Options/OutliersForOutlierTable.js' import OutliersMaxResults from '../../components/VisualizationOptions/Options/OutliersMaxResults.js' import ShowHierarchy from '../../components/VisualizationOptions/Options/ShowHierarchy.js' +import SkipRounding from '../../components/VisualizationOptions/Options/SkipRounding.js' +import getDisplayTemplate from './sections/templates/display.js' import getDataTab from './tabs/data.js' import getOutliersTab from './tabs/outliers.js' import getStyleTab from './tabs/style.js' export default () => [ getDataTab([ - { - key: 'data-section-1', - content: React.Children.toArray([]), - }, + getDisplayTemplate({ + content: React.Children.toArray([ + , + , + ]), + }), ]), getStyleTab([ {