Skip to content

Commit

Permalink
has location id
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj-ag committed Dec 23, 2020
1 parent 3e163bf commit 6ca7333
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/config/i18n/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@
"has_value_category": "Not Empty",
"has_ward": "has ward",
"has_ward_category": "Has Ward",
"has_media": "has media"
"has_media": "has media",
"has_location": "has location"
},
"removal_confirmation": "Remove?",
"revisions": {
Expand Down
3 changes: 2 additions & 1 deletion src/config/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export enum Operators {
has_intent = 'has_intent',
has_top_intent = 'has_top_intent',
has_category = 'has_category',
has_media = 'has_media'
has_media = 'has_media',
has_location = 'has_location'
}

export enum FeatureFilter {
Expand Down
8 changes: 8 additions & 0 deletions src/config/operatorConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ export const operatorConfigList: Operator[] = [
operands: 0,
categoryName: 'Has Media',
visibility: TEXT_TYPES
},

{
type: Operators.has_location,
verboseName: i18n.t('operators.has_location', 'has location'),
operands: 0,
categoryName: 'Has Location',
visibility: TEXT_TYPES
}
];

Expand Down

0 comments on commit 6ca7333

Please sign in to comment.