fix ui - change tag filter operator labels (#2000)
This commit is contained in:
parent
eb18d2ee6f
commit
8b0054afb7
2 changed files with 14 additions and 3 deletions
|
|
@ -31,6 +31,16 @@ export const options = [
|
|||
{ key: 'onComponent', label: 'on component', value: 'onComponent' }
|
||||
];
|
||||
|
||||
export const tagElementOperators = [{
|
||||
key: 'is',
|
||||
label: 'is displayed',
|
||||
value: 'is',
|
||||
}, {
|
||||
key: 'isNot',
|
||||
label: 'is not displayed',
|
||||
value: 'isNot',
|
||||
}]
|
||||
|
||||
const filterKeys = ['is', 'isNot'];
|
||||
const stringFilterKeysLimited = ['is', 'isAny', 'isNot'];
|
||||
const stringFilterKeys = ['is', 'isAny', 'isNot', 'contains', 'startsWith', 'endsWith', 'notContains'];
|
||||
|
|
@ -160,5 +170,6 @@ export default {
|
|||
methodOptions,
|
||||
pageUrlOperators,
|
||||
targetConditional,
|
||||
stringConditional
|
||||
stringConditional,
|
||||
tagElementOperators
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { stringConditional, targetConditional } from "App/constants/filterOptions";
|
||||
import { stringConditional, tagElementOperators, targetConditional } from "App/constants/filterOptions";
|
||||
import { KEYS } from 'Types/filter/customFilter';
|
||||
import Record from 'Types/Record';
|
||||
import { FilterType, FilterKey, FilterCategory } from './filterType';
|
||||
|
|
@ -270,7 +270,7 @@ export const filters = [
|
|||
operator: 'is',
|
||||
isEvent: true,
|
||||
icon: 'filters/tag-element',
|
||||
operatorOptions: filterOptions.getOperatorsByKeys(['is']),
|
||||
operatorOptions: filterOptions.tagElementOperators,
|
||||
options: [],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue