mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +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',
|
||||
metadatas: {
|
||||
customOperators,
|
||||
label: formatMessage({
|
||||
id: 'Settings.permissions.auditLogs.action',
|
||||
defaultMessage: 'Action',
|
||||
}),
|
||||
options: actionOptions,
|
||||
customOperators,
|
||||
customInput: ComboboxFilter,
|
||||
},
|
||||
fieldSchema: { type: 'enumeration' },
|
||||
@ -72,28 +72,12 @@ const getDisplayedFilters = ({ formatMessage, users }) => {
|
||||
{
|
||||
name: 'user',
|
||||
metadatas: {
|
||||
customOperators,
|
||||
label: formatMessage({
|
||||
id: 'Settings.permissions.auditLogs.user',
|
||||
defaultMessage: 'User',
|
||||
}),
|
||||
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,
|
||||
},
|
||||
fieldSchema: { type: 'relation', mainField: { name: 'id' } },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user