Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>
<Field
label="First name"
name="firstName"
<Field
label="First name"
name="firstName"
- component={ReadOnlyField as any}
- disabled
+ component={TextField as any}
+ disabled={!this.props.isAdmin && !this.props.isSelf}
/>
</Grid>
<Grid item className={this.props.classes.gridItem} sm={6} xs={12} data-cy="lastName">
<Field
label="Last name"
name="lastName"
/>
</Grid>
<Grid item className={this.props.classes.gridItem} sm={6} xs={12} data-cy="lastName">
<Field
label="Last name"
name="lastName"
- component={ReadOnlyField as any}
- disabled
+ component={TextField as any}
+ disabled={!this.props.isAdmin && !this.props.isSelf}
/>
</Grid>
<Grid item className={this.props.classes.gridItem} sm={6} xs={12} data-cy="email">
/>
</Grid>
<Grid item className={this.props.classes.gridItem} sm={6} xs={12} data-cy="email">
name="prefs.profile.website_url"
component={TextField as any}
disabled={!this.props.isAdmin && !this.props.isSelf}
name="prefs.profile.website_url"
component={TextField as any}
disabled={!this.props.isAdmin && !this.props.isSelf}
/>
</Grid>
<Grid item sm={12}>
/>
</Grid>
<Grid item sm={12}>