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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 32 additions and 0 deletions

View File

@ -42,6 +42,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

@ -45,6 +45,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

@ -40,6 +40,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

@ -48,6 +48,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

@ -47,6 +47,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

@ -46,6 +46,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

@ -44,6 +44,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

@ -59,6 +59,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

@ -354,6 +354,8 @@ export const timeSeriesSection: ControlPanelSectionConfig[] = [
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

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

View File

@ -125,6 +125,8 @@ export const NVD3TimeSeries: ControlPanelSectionConfig[] = [
label: t('Sort descending'),
default: true,
description: t('Whether to sort descending or ascending'),
visibility: ({ controls }) =>
Boolean(controls?.timeseries_limit_metric.value),
},
},
{