handle finished job run with incomplete status info

This commit is contained in:
Jake McDermott
2018-07-25 19:59:44 -04:00
parent 979eaeddfa
commit 2ba0319e79
4 changed files with 24 additions and 6 deletions
@@ -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 };
}