mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Linkify credentials on JobTemplate and Organization Details
Linkify credentials on JobTemplate and Organization Details. See: https://github.com/ansible/awx/issues/385
This commit is contained in:
parent
cf6b6d831f
commit
a1ded8db3f
@ -133,11 +133,13 @@ function OrganizationDetail({ organization }) {
|
||||
value={
|
||||
<ChipGroup numChips={5} totalChips={galaxy_credentials.length}>
|
||||
{galaxy_credentials.map(credential => (
|
||||
<CredentialChip
|
||||
credential={credential}
|
||||
key={credential.id}
|
||||
isReadOnly
|
||||
/>
|
||||
<Link to={`/credentials/${credential.id}/details`}>
|
||||
<CredentialChip
|
||||
credential={credential}
|
||||
key={credential.id}
|
||||
isReadOnly
|
||||
/>
|
||||
</Link>
|
||||
))}
|
||||
</ChipGroup>
|
||||
}
|
||||
|
||||
@ -290,7 +290,9 @@ function JobTemplateDetail({ template }) {
|
||||
totalChips={summary_fields.credentials.length}
|
||||
>
|
||||
{summary_fields.credentials.map(c => (
|
||||
<CredentialChip key={c.id} credential={c} isReadOnly />
|
||||
<Link to={`/credentials/${c.id}/details`}>
|
||||
<CredentialChip key={c.id} credential={c} isReadOnly />
|
||||
</Link>
|
||||
))}
|
||||
</ChipGroup>
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user