add feature flags to pag control (#1251)

This commit is contained in:
Phillip Kelley-Dotson
2021-07-29 12:02:42 -07:00
committed by Yongjie Zhao
parent 9fe5865e05
commit 932d2cb07d

View File

@@ -261,17 +261,20 @@ const config: ControlPanelConfig = {
},
},
],
[
{
name: 'server_pagination',
config: {
type: 'CheckboxControl',
label: t('Server pagination'),
description: t('Enable server side pagination of results (experimental feature)'),
default: false,
},
},
],
isFeatureEnabled(FeatureFlag.DASHBOARD_CROSS_FILTERS) ||
isFeatureEnabled(FeatureFlag.DASHBOARD_NATIVE_FILTERS)
? [
{
name: 'server_pagination',
config: {
type: 'CheckboxControl',
label: t('Server pagination'),
description: t('Enable server side pagination of results (experimental feature)'),
default: false,
},
},
]
: [],
[
{
name: 'row_limit',