From e71e0c5ef15eaf9908246a68655034b21ea0dbe2 Mon Sep 17 00:00:00 2001 From: Bharat Date: Thu, 1 Apr 2021 18:56:42 +0530 Subject: [PATCH 1/3] Added URL as a property on the frontend --- webapp/src/components/propertyValueElement.tsx | 7 ++++++- webapp/src/widgets/propertyMenu.tsx | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/propertyValueElement.tsx b/webapp/src/components/propertyValueElement.tsx index 5267fe73e6d..e0ef115b526 100644 --- a/webapp/src/components/propertyValueElement.tsx +++ b/webapp/src/components/propertyValueElement.tsx @@ -75,7 +75,12 @@ const PropertyValueElement = (props:Props): JSX.Element => { ) } - if (propertyTemplate.type === 'text' || propertyTemplate.type === 'number' || propertyTemplate.type === 'email') { + if ( + propertyTemplate.type === 'text' || + propertyTemplate.type === 'number' || + propertyTemplate.type === 'email' || + propertyTemplate.type === 'url' + ) { if (!readOnly) { return ( { name={typeDisplayName(intl, 'email')} onClick={() => props.onTypeChanged('email')} /> + props.onTypeChanged('url')} + /> Date: Thu, 1 Apr 2021 19:09:18 +0530 Subject: [PATCH 2/3] Updated snapshot to include URL in dropdown --- .../__snapshots__/propertyMenu.test.tsx.snap | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/webapp/src/widgets/__snapshots__/propertyMenu.test.tsx.snap b/webapp/src/widgets/__snapshots__/propertyMenu.test.tsx.snap index 89c00e901ad..18500859269 100644 --- a/webapp/src/widgets/__snapshots__/propertyMenu.test.tsx.snap +++ b/webapp/src/widgets/__snapshots__/propertyMenu.test.tsx.snap @@ -111,6 +111,21 @@ exports[`widgets/PropertyMenu should match snapshot 1`] = ` class="noicon" /> +