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:
Jake McDermott 2019-03-27 08:11:58 -04:00
parent 259fcdc5df
commit 7a093de9fd
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7

View File

@ -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);