From d5b7d475b9aecbc1ec1e939133e92c1be35686e7 Mon Sep 17 00:00:00 2001 From: John Bodley Date: Thu, 23 Jun 2022 11:42:00 -0700 Subject: [PATCH] fix: Re-add filter-box time granularity/column --- .../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 29906843da515..8e76c9d8287ff 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'], ], },