mirror of
https://github.com/apache/superset.git
synced 2024-09-06 05:47:43 -04:00
refactor(frontend): Make dashboard search box the first filter (#19721)
This commit is contained in:
parent
60a617eaba
commit
08f2c9b305
@ -463,6 +463,13 @@ function DashboardList(props: DashboardListProps) {
|
|||||||
|
|
||||||
const filters: Filters = useMemo(
|
const filters: Filters = useMemo(
|
||||||
() => [
|
() => [
|
||||||
|
{
|
||||||
|
Header: t('Search'),
|
||||||
|
key: 'search',
|
||||||
|
id: 'dashboard_title',
|
||||||
|
input: 'search',
|
||||||
|
operator: FilterOperator.titleOrSlug,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Header: t('Owner'),
|
Header: t('Owner'),
|
||||||
key: 'owner',
|
key: 'owner',
|
||||||
@ -533,13 +540,6 @@ function DashboardList(props: DashboardListProps) {
|
|||||||
{ label: t('No'), value: false },
|
{ label: t('No'), value: false },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Header: t('Search'),
|
|
||||||
key: 'search',
|
|
||||||
id: 'dashboard_title',
|
|
||||||
input: 'search',
|
|
||||||
operator: FilterOperator.titleOrSlug,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
[addDangerToast, favoritesFilter, props.user],
|
[addDangerToast, favoritesFilter, props.user],
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user