Skip to content

Commit

Permalink
Merge pull request #84 from renjithgr/main
Browse files Browse the repository at this point in the history
[GH-40] Add property type email
  • Loading branch information
jespino authored Mar 18, 2021
2 parents 8ea4da8 + d6950c2 commit 97171af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/propertyValueElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class PropertyValueElement extends React.Component<Props, State>
)
}

if (propertyTemplate.type === 'text' || propertyTemplate.type === 'number') {
if (propertyTemplate.type === 'text' || propertyTemplate.type === 'number' || propertyTemplate.type === 'email') {
if (!readOnly) {
return (
<Editable
Expand Down
5 changes: 5 additions & 0 deletions webapp/src/widgets/propertyMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class PropertyMenu extends React.PureComponent<Props, State> {
name='Number'
onClick={() => this.props.onTypeChanged('number')}
/>
<Menu.Text
id='email'
name='Email'
onClick={() => this.props.onTypeChanged('email')}
/>
<Menu.Text
id='select'
name='Select'
Expand Down

0 comments on commit 97171af

Please sign in to comment.