Skip to content

Commit

Permalink
Existing users’ usernames should not be editable
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger committed Jun 23, 2021
1 parent 08e954d commit 76c0c4c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const UserSelector: React.FC<Props> = ({
<EuiFormRow label={USERNAME_LABEL} helpText={!elasticsearchUser.username && REQUIRED_LABEL}>
<EuiFieldText
name={USERNAME_LABEL}
disabled={!isNewUser}
data-test-subj="UsernameInput"
value={elasticsearchUser.username}
onChange={(e) => setElasticsearchUsernameValue(e.target.value)}
Expand Down

0 comments on commit 76c0c4c

Please sign in to comment.