diff --git a/src/core/features/grades/services/grades-helper.ts b/src/core/features/grades/services/grades-helper.ts index f6a12b76a..60e9aa9e4 100644 --- a/src/core/features/grades/services/grades-helper.ts +++ b/src/core/features/grades/services/grades-helper.ts @@ -158,7 +158,7 @@ export class CoreGradesHelperProvider { row.gradeIcon = 'fas-check'; row.gradeIconAlt = Translate.instant('core.grades.pass'); content = CoreTextUtils.cleanTags(content); - } else if (content.includes('fa-times')) { + } else if (content.includes('fa-times') || content.includes('fa-xmark')) { row.gradeIcon = 'fas-xmark'; row.gradeIconAlt = Translate.instant('core.grades.fail'); content = CoreTextUtils.cleanTags(content); @@ -666,7 +666,7 @@ export class CoreGradesHelperProvider { row.itemtype = 'agg_sum'; row.icon = 'moodle-agg_sum'; row.iconAlt = Translate.instant('core.grades.aggregatesum'); - } else if (text.indexOf('/outcomes') > -1 || text.indexOf('fa-tasks') > -1) { + } else if (text.indexOf('/outcomes') > -1 || text.indexOf('fa-tasks') > -1 || text.indexOf('fa-list-check') > -1) { row.itemtype = 'outcome'; row.icon = 'fas-list-check'; row.iconAlt = Translate.instant('core.grades.outcome'); diff --git a/src/core/features/question/services/question-helper.ts b/src/core/features/question/services/question-helper.ts index 770cce873..0ee6c30e8 100644 --- a/src/core/features/question/services/question-helper.ts +++ b/src/core/features/question/services/question-helper.ts @@ -792,7 +792,7 @@ export class CoreQuestionHelperProvider { const classList = icon.classList.toString(); if (classList.indexOf('fa-check') >= 0) { correct = true; - } else if (classList.indexOf('fa-remove') < 0) { + } else if (classList.indexOf('fa-xmark') < 0 || classList.indexOf('fa-remove') < 0) { return; } }