mirror of
https://github.com/strapi/strapi.git
synced 2025-07-31 04:45:54 +00:00
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:
parent
679c532878
commit
f6648826f4
@ -11,32 +11,18 @@ const getFilterList = ({ fieldSchema: { type: fieldType, mainField } }) => {
|
||||
return [
|
||||
{
|
||||
intlLabel: {
|
||||
id: 'components.FilterOptions.FILTER_TYPES.$contains',
|
||||
defaultMessage: 'contains',
|
||||
id: 'components.FilterOptions.FILTER_TYPES.$eq',
|
||||
defaultMessage: 'is',
|
||||
},
|
||||
value: '$contains',
|
||||
},
|
||||
{
|
||||
intlLabel: {
|
||||
id: 'components.FilterOptions.FILTER_TYPES.$containsi',
|
||||
defaultMessage: 'contains (case insensitive)',
|
||||
},
|
||||
value: '$containsi',
|
||||
},
|
||||
{
|
||||
intlLabel: {
|
||||
id: 'components.FilterOptions.FILTER_TYPES.$notContains',
|
||||
defaultMessage: 'not contains',
|
||||
id: 'components.FilterOptions.FILTER_TYPES.$ne',
|
||||
defaultMessage: 'is not',
|
||||
},
|
||||
value: '$notContains',
|
||||
},
|
||||
{
|
||||
intlLabel: {
|
||||
id: 'components.FilterOptions.FILTER_TYPES.$notContainsi',
|
||||
defaultMessage: 'not contains (case insensitive)',
|
||||
},
|
||||
value: '$notContainsi',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user