Added URL as a property on the frontend
This commit is contained in:
parent
b1f6622bb1
commit
e71e0c5ef1
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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')}
|
||||
|
|
Loading…
Reference in a new issue