mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02: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:
@@ -465,7 +465,13 @@ function getCredentialDetails () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildCredentialDetails (credential) {
|
function buildCredentialDetails (credential) {
|
||||||
const icon = `${credential.kind}`;
|
let icon;
|
||||||
|
if (credential.cloud) {
|
||||||
|
icon = 'cloud';
|
||||||
|
} else {
|
||||||
|
icon = `${credential.kind}`;
|
||||||
|
}
|
||||||
|
|
||||||
const link = `/#/credentials/${credential.id}`;
|
const link = `/#/credentials/${credential.id}`;
|
||||||
const tooltip = strings.get('tooltips.CREDENTIAL');
|
const tooltip = strings.get('tooltips.CREDENTIAL');
|
||||||
const value = $filter('sanitize')(credential.name);
|
const value = $filter('sanitize')(credential.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user