MOBILE-3213 resource: Fix resource icon set
parent
36a070d98f
commit
07b32226bd
|
@ -222,12 +222,11 @@ export class AddonModResourceModuleHandler implements CoreCourseModuleHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resourceData.icon == '') {
|
|
||||||
resourceData.icon = this.courseProvider.getModuleIconSrc(this.modName, module.modicon);
|
|
||||||
}
|
|
||||||
resourceData.extra += extra.join(' ');
|
resourceData.extra += extra.join(' ');
|
||||||
} else {
|
}
|
||||||
// No files, just set the icon.
|
|
||||||
|
// No previously set, just set the icon.
|
||||||
|
if (resourceData.icon == '') {
|
||||||
resourceData.icon = this.courseProvider.getModuleIconSrc(this.modName, module.modicon);
|
resourceData.icon = this.courseProvider.getModuleIconSrc(this.modName, module.modicon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue