Browse Source

feat(nc-gui): exclude numeric UI Types for like & empty operators

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
441950d0f5
  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], excludedTypes: [UITypes.Checkbox, ...numericUITypes],
}, },
{ {
text: 'is not like', text: 'is not like',
value: 'nlike', value: 'nlike',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, ...numericUITypes],
}, },
{ {
text: 'is empty', text: 'is empty',
value: 'empty', value: 'empty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.Rating, UITypes.Number, UITypes.Decimal, UITypes.Percent, UITypes.Currency], excludedTypes: [UITypes.Checkbox, ...numericUITypes],
}, },
{ {
text: 'is not empty', text: 'is not empty',
value: 'notempty', value: 'notempty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.Rating, UITypes.Number, UITypes.Decimal, UITypes.Percent, UITypes.Currency], excludedTypes: [UITypes.Checkbox, ...numericUITypes],
}, },
{ {
text: 'is null', text: 'is null',

Loading…
Cancel
Save