MOBILE-4279 fonts: Check aliases new names when parsing

main
Pau Ferrer Ocaña 2023-03-15 12:36:58 +01:00
parent 902288dd0f
commit d047269d76
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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;
}
}