mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
feat: global search by flag type (#7346)
This commit is contained in:
parent
24c0976d56
commit
76c8cbad0c
@ -104,6 +104,20 @@ export const FeatureToggleFilters: VFC<IFeatureToggleFiltersProps> = ({
|
|||||||
filterKey: 'createdAt',
|
filterKey: 'createdAt',
|
||||||
dateOperators: ['IS_ON_OR_AFTER', 'IS_BEFORE'],
|
dateOperators: ['IS_ON_OR_AFTER', 'IS_BEFORE'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Flag type',
|
||||||
|
icon: 'flag',
|
||||||
|
options: [
|
||||||
|
{ label: 'Release', value: 'release' },
|
||||||
|
{ label: 'Experiment', value: 'experiment' },
|
||||||
|
{ label: 'Operational', value: 'operational' },
|
||||||
|
{ label: 'Kill switch', value: 'kill-switch' },
|
||||||
|
{ label: 'Permission', value: 'permission' },
|
||||||
|
],
|
||||||
|
filterKey: 'type',
|
||||||
|
singularOperators: ['IS', 'IS_NOT'],
|
||||||
|
pluralOperators: ['IS_ANY_OF', 'IS_NONE_OF'],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
setAvailableFilters(availableFilters);
|
setAvailableFilters(availableFilters);
|
||||||
|
@ -106,6 +106,7 @@ export const FeatureToggleListTable: VFC = () => {
|
|||||||
state: FilterItemParam,
|
state: FilterItemParam,
|
||||||
segment: FilterItemParam,
|
segment: FilterItemParam,
|
||||||
createdAt: FilterItemParam,
|
createdAt: FilterItemParam,
|
||||||
|
type: FilterItemParam,
|
||||||
};
|
};
|
||||||
const [tableState, setTableState] = usePersistentTableState(
|
const [tableState, setTableState] = usePersistentTableState(
|
||||||
'features-list-table',
|
'features-list-table',
|
||||||
|
Loading…
Reference in New Issue
Block a user