mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 06:35:47 +00:00
Add description in relations
This commit is contained in:
parent
24484cf364
commit
f7c2d7f503
@ -64,9 +64,14 @@ class EditFormRelation extends React.Component { // eslint-disable-line react/pr
|
||||
}
|
||||
|
||||
render() {
|
||||
const description = this.props.relation.description
|
||||
? <p>{this.props.relation.description}</p>
|
||||
: '';
|
||||
|
||||
return (
|
||||
<div className="form-group">
|
||||
<label htmlFor={this.props.relation.label}>{this.props.relation.label}</label>
|
||||
{description}
|
||||
<Select.Async
|
||||
onChange={this.onChange}
|
||||
loadOptions={this.getOptions}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user