An enumeration should only provide $eq and $ne

There's no point here to provide contains-related filters as the value is chosen from a dropdown.
This commit is contained in:
Maxime Robert 2023-06-08 11:53:14 +02:00 committed by Maxime Robert
parent 679c532878
commit f6648826f4

View File

@ -11,32 +11,18 @@ const getFilterList = ({ fieldSchema: { type: fieldType, mainField } }) => {
return [ return [
{ {
intlLabel: { intlLabel: {
id: 'components.FilterOptions.FILTER_TYPES.$contains', id: 'components.FilterOptions.FILTER_TYPES.$eq',
defaultMessage: 'contains', defaultMessage: 'is',
}, },
value: '$contains', value: '$contains',
}, },
{ {
intlLabel: { intlLabel: {
id: 'components.FilterOptions.FILTER_TYPES.$containsi', id: 'components.FilterOptions.FILTER_TYPES.$ne',
defaultMessage: 'contains (case insensitive)', defaultMessage: 'is not',
},
value: '$containsi',
},
{
intlLabel: {
id: 'components.FilterOptions.FILTER_TYPES.$notContains',
defaultMessage: 'not contains',
}, },
value: '$notContains', value: '$notContains',
}, },
{
intlLabel: {
id: 'components.FilterOptions.FILTER_TYPES.$notContainsi',
defaultMessage: 'not contains (case insensitive)',
},
value: '$notContainsi',
},
]; ];
} }