mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(explore): make SORT-Descending visible if Sort-by has value (#17726)
This commit is contained in:
@@ -89,6 +89,8 @@ const config: ControlPanelConfig = {
|
||||
label: t('Sort Descending'),
|
||||
default: true,
|
||||
description: t('Whether to sort descending or ascending'),
|
||||
visibility: ({ controls }) =>
|
||||
Boolean(controls?.timeseries_limit_metric.value),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -86,6 +86,8 @@ const config: ControlPanelConfig = {
|
||||
label: t('Sort Descending'),
|
||||
default: true,
|
||||
description: t('Whether to sort descending or ascending'),
|
||||
visibility: ({ controls }) =>
|
||||
Boolean(controls?.timeseries_limit_metric.value),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -66,6 +66,8 @@ const config: ControlPanelConfig = {
|
||||
label: t('Sort Descending'),
|
||||
default: true,
|
||||
description: t('Whether to sort descending or ascending'),
|
||||
visibility: ({ controls }) =>
|
||||
Boolean(controls?.timeseries_limit_metric.value),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -83,6 +83,8 @@ const config: ControlPanelConfig = {
|
||||
label: t('Sort Descending'),
|
||||
default: true,
|
||||
description: t('Whether to sort descending or ascending'),
|
||||
visibility: ({ controls }) =>
|
||||
Boolean(controls?.timeseries_limit_metric.value),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -89,6 +89,8 @@ const config: ControlPanelConfig = {
|
||||
label: t('Sort Descending'),
|
||||
default: true,
|
||||
description: t('Whether to sort descending or ascending'),
|
||||
visibility: ({ controls }) =>
|
||||
Boolean(controls?.timeseries_limit_metric.value),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -90,6 +90,8 @@ const config: ControlPanelConfig = {
|
||||
label: t('Sort Descending'),
|
||||
default: true,
|
||||
description: t('Whether to sort descending or ascending'),
|
||||
visibility: ({ controls }) =>
|
||||
Boolean(controls?.timeseries_limit_metric.value),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user