MOBILE-4407 resources: Show resource mimetype icon
parent
55d126ca24
commit
634447d7c6
|
@ -20,7 +20,6 @@ import { CoreCourseModuleData } from '@features/course/services/course-helper';
|
||||||
import { CoreCourseModuleHandler, CoreCourseModuleHandlerData } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleHandler, CoreCourseModuleHandlerData } from '@features/course/services/module-delegate';
|
||||||
import { CoreCourseModulePrefetchDelegate } from '@features/course/services/module-prefetch-delegate';
|
import { CoreCourseModulePrefetchDelegate } from '@features/course/services/module-prefetch-delegate';
|
||||||
import { CoreFileHelper } from '@services/file-helper';
|
import { CoreFileHelper } from '@services/file-helper';
|
||||||
import { CoreSites } from '@services/sites';
|
|
||||||
import { CoreMimetypeUtils } from '@services/utils/mimetype';
|
import { CoreMimetypeUtils } from '@services/utils/mimetype';
|
||||||
import { CoreTextUtils } from '@services/utils/text';
|
import { CoreTextUtils } from '@services/utils/text';
|
||||||
import { CoreTimeUtils } from '@services/utils/time';
|
import { CoreTimeUtils } from '@services/utils/time';
|
||||||
|
@ -229,9 +228,6 @@ export class AddonModResourceModuleHandlerService extends CoreModuleHandlerBase
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('4.0')) {
|
|
||||||
return CoreCourse.getModuleIconSrc(module.modname, module.modicon);
|
|
||||||
}
|
|
||||||
let mimetypeIcon = '';
|
let mimetypeIcon = '';
|
||||||
|
|
||||||
if (module.contentsinfo) {
|
if (module.contentsinfo) {
|
||||||
|
|
Loading…
Reference in New Issue