mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 15:19:00 +00:00
Remove is and is not null operators form user
This commit is contained in:
parent
0b4f2572ba
commit
cab6d7817e
@ -49,12 +49,12 @@ const getDisplayedFilters = ({ formatMessage, users }) => {
|
|||||||
{
|
{
|
||||||
name: 'action',
|
name: 'action',
|
||||||
metadatas: {
|
metadatas: {
|
||||||
|
customOperators,
|
||||||
label: formatMessage({
|
label: formatMessage({
|
||||||
id: 'Settings.permissions.auditLogs.action',
|
id: 'Settings.permissions.auditLogs.action',
|
||||||
defaultMessage: 'Action',
|
defaultMessage: 'Action',
|
||||||
}),
|
}),
|
||||||
options: actionOptions,
|
options: actionOptions,
|
||||||
customOperators,
|
|
||||||
customInput: ComboboxFilter,
|
customInput: ComboboxFilter,
|
||||||
},
|
},
|
||||||
fieldSchema: { type: 'enumeration' },
|
fieldSchema: { type: 'enumeration' },
|
||||||
@ -72,28 +72,12 @@ const getDisplayedFilters = ({ formatMessage, users }) => {
|
|||||||
{
|
{
|
||||||
name: 'user',
|
name: 'user',
|
||||||
metadatas: {
|
metadatas: {
|
||||||
|
customOperators,
|
||||||
label: formatMessage({
|
label: formatMessage({
|
||||||
id: 'Settings.permissions.auditLogs.user',
|
id: 'Settings.permissions.auditLogs.user',
|
||||||
defaultMessage: 'User',
|
defaultMessage: 'User',
|
||||||
}),
|
}),
|
||||||
options: userOptions,
|
options: userOptions,
|
||||||
customOperators: [
|
|
||||||
...customOperators,
|
|
||||||
{
|
|
||||||
intlLabel: {
|
|
||||||
id: 'components.FilterOptions.FILTER_TYPES.$null',
|
|
||||||
defaultMessage: 'is null',
|
|
||||||
},
|
|
||||||
value: '$null',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
intlLabel: {
|
|
||||||
id: 'components.FilterOptions.FILTER_TYPES.$notNull',
|
|
||||||
defaultMessage: 'is not null',
|
|
||||||
},
|
|
||||||
value: '$notNull',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
customInput: ComboboxFilter,
|
customInput: ComboboxFilter,
|
||||||
},
|
},
|
||||||
fieldSchema: { type: 'relation', mainField: { name: 'id' } },
|
fieldSchema: { type: 'relation', mainField: { name: 'id' } },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user