From 6ca7333fa70493fb3bbc8cbf7d28a8a324e7cc7f Mon Sep 17 00:00:00 2001 From: pankaj-ag Date: Wed, 23 Dec 2020 16:47:25 +0530 Subject: [PATCH] has location id --- src/config/i18n/defaults.json | 3 ++- src/config/interfaces.ts | 3 ++- src/config/operatorConfigs.ts | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/config/i18n/defaults.json b/src/config/i18n/defaults.json index 4a3e40042..e4e345ba3 100644 --- a/src/config/i18n/defaults.json +++ b/src/config/i18n/defaults.json @@ -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": { diff --git a/src/config/interfaces.ts b/src/config/interfaces.ts index 43be45920..62888d310 100644 --- a/src/config/interfaces.ts +++ b/src/config/interfaces.ts @@ -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 { diff --git a/src/config/operatorConfigs.ts b/src/config/operatorConfigs.ts index 261706186..028233166 100644 --- a/src/config/operatorConfigs.ts +++ b/src/config/operatorConfigs.ts @@ -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 } ];