Skip to content

Commit 356ea60

Browse files
committed
frontend/user: disable email input and highlight warning message
1 parent 216e0ce commit 356ea60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/pages/user.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ class UserComponent extends Component<{}, State> {
9393
</Form.Group>
9494
<Form.Group className="pb-3" controlId="userEmail">
9595
<Form.Label className="text-muted">{t("email")}</Form.Label>
96-
<Form.Control type="email" value={this.state.user.email} onChange={(e) => {
96+
<Form.Control disabled type="email" value={this.state.user.email} onChange={(e) => {
9797
this.setState({user: {...this.state.user, email: (e.target as HTMLInputElement).value}, isDirty: true});
9898
}} />
99-
<Form.Text>
99+
<Form.Text className="text-danger">
100100
{t("email_change_warning")}
101101
</Form.Text>
102102
</Form.Group>

0 commit comments

Comments
 (0)