Browse Source

feat(nc-gui): exclude single select & collaborator for like & empty

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
d0bb200dd6
  1. 8
      packages/nc-gui/utils/filterUtils.ts

8
packages/nc-gui/utils/filterUtils.ts

@ -32,24 +32,24 @@ export const comparisonOpList: {
{ {
text: 'is like', text: 'is like',
value: 'like', value: 'like',
excludedTypes: [UITypes.Checkbox, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is not like', text: 'is not like',
value: 'nlike', value: 'nlike',
excludedTypes: [UITypes.Checkbox, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is empty', text: 'is empty',
value: 'empty', value: 'empty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is not empty', text: 'is not empty',
value: 'notempty', value: 'notempty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, ...numericUITypes], excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.Collaborator, ...numericUITypes],
}, },
{ {
text: 'is null', text: 'is null',

Loading…
Cancel
Save