From 661ab35bd07b22defe45c112f5e5230929b27681 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Thu, 23 Jun 2022 12:42:40 -0700 Subject: [PATCH] fix: Re-add filter-box time granularity/column (#20485) Co-authored-by: John Bodley --- .../visualizations/FilterBox/controlPanel.jsx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/superset-frontend/src/visualizations/FilterBox/controlPanel.jsx b/superset-frontend/src/visualizations/FilterBox/controlPanel.jsx index 29906843da51..8e76c9d8287f 100644 --- a/superset-frontend/src/visualizations/FilterBox/controlPanel.jsx +++ b/superset-frontend/src/visualizations/FilterBox/controlPanel.jsx @@ -66,6 +66,28 @@ export default { }, }, ], + [ + { + name: 'show_sqla_time_granularity', + config: { + type: 'CheckboxControl', + label: t('Show time grain dropdown'), + default: false, + description: t('Check to include time grain dropdown'), + }, + }, + ], + [ + { + name: 'show_sqla_time_column', + config: { + type: 'CheckboxControl', + label: t('Show time column'), + default: false, + description: t('Check to include time column dropdown'), + }, + }, + ], ['adhoc_filters'], ], },