MOBILE-4279 fonts: Check aliases new names when parsing
parent
902288dd0f
commit
d047269d76
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue