mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
add workaround for null cloud credential kind summary fields
job details summary field credentials have `null` for the `kind` field so we can't map it to icon names. To work around this, we now check the value of the `cloud` field when generating the icon to use.
This commit is contained in:
parent
259fcdc5df
commit
7a093de9fd
@ -465,7 +465,13 @@ function getCredentialDetails () {
|
||||
}
|
||||
|
||||
function buildCredentialDetails (credential) {
|
||||
const icon = `${credential.kind}`;
|
||||
let icon;
|
||||
if (credential.cloud) {
|
||||
icon = 'cloud';
|
||||
} else {
|
||||
icon = `${credential.kind}`;
|
||||
}
|
||||
|
||||
const link = `/#/credentials/${credential.id}`;
|
||||
const tooltip = strings.get('tooltips.CREDENTIAL');
|
||||
const value = $filter('sanitize')(credential.name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user