mirror of
https://github.com/strapi/strapi.git
synced 2025-08-02 13:58:18 +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 [
|
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',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user