chore: use order_desc shared control consistently (#19172)

This commit is contained in:
Stephen Liu
2022-03-18 21:28:47 +08:00
committed by GitHub
parent b5e9fad11a
commit 10eb6c77a4
16 changed files with 20 additions and 186 deletions

View File

@@ -32,19 +32,7 @@ const config: ControlPanelConfig = {
['adhoc_filters'],
['limit', 'row_limit'],
['timeseries_limit_metric'],
[
{
name: 'order_desc',
config: {
type: 'CheckboxControl',
label: t('Sort Descending'),
default: true,
description: t('Whether to sort descending or ascending'),
visibility: ({ controls }) =>
Boolean(controls?.timeseries_limit_metric.value),
},
},
],
['order_desc'],
],
},
{