mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 07:48:39 -05:00
handle finished job run with incomplete status info
This commit is contained in:
@@ -26,10 +26,18 @@ function getStatusDetails (jobStatus) {
|
||||
}
|
||||
|
||||
const choices = mapChoices(resource.model.options('actions.GET.status.choices'));
|
||||
|
||||
const label = strings.get('labels.STATUS');
|
||||
const icon = `fa icon-job-${unmapped}`;
|
||||
const value = choices[unmapped];
|
||||
|
||||
let icon;
|
||||
let value;
|
||||
|
||||
if (unmapped === 'unknown') {
|
||||
icon = 'fa icon-job-pending';
|
||||
value = strings.get('details.UNKNOWN');
|
||||
} else {
|
||||
icon = `fa icon-job-${unmapped}`;
|
||||
value = choices[unmapped];
|
||||
}
|
||||
|
||||
return { label, icon, value };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user