Added URL as a property on the frontend

This commit is contained in:
Bharat 2021-04-01 18:56:42 +05:30
parent b1f6622bb1
commit e71e0c5ef1
2 changed files with 11 additions and 1 deletions

View file

@ -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 (
<Editable

View file

@ -103,6 +103,11 @@ const PropertyMenu = React.memo((props: Props) => {
name={typeDisplayName(intl, 'email')}
onClick={() => props.onTypeChanged('email')}
/>
<Menu.Text
id='url'
name={typeDisplayName(intl, 'url')}
onClick={() => props.onTypeChanged('url')}
/>
<Menu.Text
id='select'
name={typeDisplayName(intl, 'select')}