Restored icons for corecompletion view

This commit is contained in:
PMKuipers 2023-05-19 22:12:18 +02:00
parent 050362905d
commit a6ebafb234
2 changed files with 9 additions and 13 deletions

View File

@ -745,20 +745,16 @@ export default {
methods: {
completion_icon(completion) {
switch(completion){
default: // case "incomplete"
return "circle-o";
case "pending":
return "question-circle";
case "failed":
return "times-circle";
case "progress":
return "exclamation-circle";
case "completed":
case "complete":
return "check-circle";
case "good":
return "check-circle";
case "excellent":
case "complete-pass":
return "check-circle";
case "complete-fail":
return "times-circle";
default: // case "incomplete"
return "circle-o";
}
},
@ -771,8 +767,8 @@ export default {
<template v-for='cgroup in value.conditions'>
<tr>
<th colspan='2'>{{cgroup.title}}</th>
<th><i :class="'fa fa-'+completion_icon(completion_tag(cgroup))+' r-completion-'+completion_tag(cgroup)"
:title="text['completion_'+completion_tag(cgroup)]"></i></th>
<th><i :class="'fa fa-'+completion_icon(cgroup.status)+' r-completion-'+cgroup.status"
:title="text['completion_'+cgroup.status]"></i></th>
</tr>
<tr v-for='ci in cgroup.items'>
<td><span v-if='guestmode'>{{ci.title}}</span>

View File

@ -242,7 +242,7 @@ class corecompletioninfo {
"type" => $COMPLETION_CRITERIA_TYPES[$type],
"aggregation" => self::aggregation_handle($typeaggregation),
"completed" => $completed,
"status" => $completed?"completed":"incomplete",
"status" => $completed?"complete":"incomplete",
"title" => reset($completions)->get_criteria()->get_type_title(),
"items" => [],
];