Skip to content

Commit

Permalink
fix(Personas): Disables add attribute button when name and value are …
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiamross authored and ryasmi committed Dec 18, 2019
1 parent 6639ea5 commit f255931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/pages/PeopleManagePage/AttributesEditor/NewRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const render = ({
onSubmit={handleAdd} />
</TableData>
<TableActionsData>
<AddIconButton onClick={handleAdd} />
<AddIconButton onClick={handleAdd} disabled={!(attributeKey.length && attributeValue.length)} />
<CancelIconButton onClick={onCancel} />
</TableActionsData>
</tr>
Expand Down

0 comments on commit f255931

Please sign in to comment.