fix(explore): make SORT-Descending visible if Sort-by has value (#17726)

This commit is contained in:
Stephen Liu
2021-12-21 15:27:21 +08:00
committed by GitHub
parent 5b0aa27f2b
commit d5768ab649
16 changed files with 32 additions and 0 deletions

View File

@@ -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),
},
},
],

View File

@@ -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),
},
},
],

View File

@@ -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),
},
},
],

View File

@@ -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),
},
},
],

View File

@@ -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),
},
},
],

View File

@@ -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),
},
},
],