mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +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',
|
||||
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);
|
||||
|
@ -106,6 +106,7 @@ export const FeatureToggleListTable: VFC = () => {
|
||||
state: FilterItemParam,
|
||||
segment: FilterItemParam,
|
||||
createdAt: FilterItemParam,
|
||||
type: FilterItemParam,
|
||||
};
|
||||
const [tableState, setTableState] = usePersistentTableState(
|
||||
'features-list-table',
|
||||
|
Loading…
Reference in New Issue
Block a user