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

View file

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