mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Fix credential labels in jobs list
This commit is contained in:
parent
90d57300da
commit
549cd347e9
@ -62,6 +62,15 @@ function ListJobsController (
|
||||
|
||||
vm.jobTypes = mapChoices(unifiedJob.options('actions.GET.type.choices'));
|
||||
|
||||
vm.buildCredentialTags = (credentials) =>
|
||||
credentials.map(credential => {
|
||||
const icon = `${credential.kind}`;
|
||||
const link = `/#/credentials/${credential.id}`;
|
||||
const value = credential.name;
|
||||
|
||||
return { icon, link, value };
|
||||
});
|
||||
|
||||
vm.getSref = ({ type, id }) => {
|
||||
let sref;
|
||||
|
||||
|
||||
@ -65,6 +65,7 @@
|
||||
label-value="{{:: vm.strings.get('list.ROW_ITEM_LABEL_CREDENTIALS') }}"
|
||||
tag-values="job.summary_fields.credentials"
|
||||
tags-are-creds="true">
|
||||
<at-toggle-tag ng-init="credTags=vm.buildCredentialTags(job.summary_fields.credentials)" tags="credTags"></at-toggle-tag>
|
||||
</at-row-item>
|
||||
<labels-list class="LabelList" show-delete="false" is-row-item="true" state="job">
|
||||
</labels-list>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user