Skip to content

Commit

Permalink
Added ids for group edit/delete buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 14, 2022
1 parent 4e4b78b commit 8bdd167
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/app/admin/container/GroupsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ export function GroupsList({ groups, onDelete }) {
<td>{group.description || ''}</td>
<td>{group.approversList?.length > 0 ? group.approversList[0].approverGroupIds.join(', ') : '-'}</td>
<td className="text-end">
<Link to={`../groups/${group.resourceId}/edit`} className="btn btn-link text-primary">
<Link to={`../groups/${group.resourceId}/edit`} className="btn btn-link text-primary"
id={`group-edit-${i}`}>
<FontAwesomeIcon icon={faEdit} size="lg" />
<span className="sr-only">
<Translate value="action.edit">Edit</Translate>
</span>
</Link>
<Button variant="link" className="text-danger" onClick={() => block(() => remove(group.resourceId))}>
<Button variant="link" className="text-danger" onClick={() => block(() => remove(group.resourceId))} id={`group-delete-${i}`}>
<FontAwesomeIcon icon={faTrash} size="lg" />
<span className="sr-only">
<Translate value="action.delete">Delete</Translate>
Expand Down

0 comments on commit 8bdd167

Please sign in to comment.