Skip to content

Commit

Permalink
Removed guid from ids
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 14, 2022
1 parent c2062a6 commit 4e4b78b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/src/app/metadata/domain/source/component/SourceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function SourceList({ entities, onDelete, onEnable, onApprove, on
<span className="d-flex justify-content-center align-items-center">
{onApprove ?
<Button variant={source.approved ? 'outline-success' : 'outline-primary' }
id={`approve-switch-${source.id}`}
id={`approve-switch-${idx}`}
size="sm" className=""
onClick={() => onApprove(source, !source.approved)}>
<span className=" me-1">
Expand Down Expand Up @@ -110,8 +110,8 @@ export default function SourceList({ entities, onDelete, onEnable, onApprove, on
<td className="align-middle">
<label htmlFor={`group-${source.serviceProviderName}`} className="sr-only"><Translate value="action.source-group">Group</Translate></label>
<Form.Select
id={`group-${source.id}`}
name={`group-${source.id}`}
id={`group-${idx}`}
name={`group-${idx}`}
className="form-control"
onChange={(event) => onChangeGroup(source, event.target.value)}
value={source.idOfOwner ? source.idOfOwner : ''}
Expand All @@ -135,6 +135,7 @@ export default function SourceList({ entities, onDelete, onEnable, onApprove, on
<span className="d-inline-block">
<Button variant="danger" size="sm"
type="button"
id={`delete-${idx}`}
disabled={source.serviceEnabled}
onClick={() => onDelete(source.id, onDelete)}>
<span className="sr-only">Delete</span>
Expand Down

0 comments on commit 4e4b78b

Please sign in to comment.