Browse Source

feat(nc-gui): exclude operators for attachment

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

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

@ -24,12 +24,12 @@ export const comparisonOpList: {
{ {
text: 'is equal', text: 'is equal',
value: 'eq', value: 'eq',
excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect, UITypes.Attachment],
}, },
{ {
text: 'is not equal', text: 'is not equal',
value: 'neq', value: 'neq',
excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect, UITypes.Attachment],
}, },
{ {
text: 'is like', text: 'is like',
@ -45,13 +45,27 @@ export const comparisonOpList: {
text: 'is empty', text: 'is empty',
value: 'empty', value: 'empty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.MultiSelect, UITypes.Collaborator, ...numericUITypes], excludedTypes: [
UITypes.Checkbox,
UITypes.SingleSelect,
UITypes.MultiSelect,
UITypes.Collaborator,
UITypes.Attachment,
...numericUITypes,
],
}, },
{ {
text: 'is not empty', text: 'is not empty',
value: 'notempty', value: 'notempty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.SingleSelect, UITypes.MultiSelect, UITypes.Collaborator, ...numericUITypes], excludedTypes: [
UITypes.Checkbox,
UITypes.SingleSelect,
UITypes.MultiSelect,
UITypes.Collaborator,
UITypes.Attachment,
...numericUITypes,
],
}, },
{ {
text: 'is null', text: 'is null',

Loading…
Cancel
Save