MOBILE-3713 core: Fix services not being used
parent
3c67ed0f59
commit
c99487ef5e
|
@ -19,6 +19,7 @@ import { CoreCourseModuleDelegate } from '@features/course/services/module-deleg
|
|||
import { CoreCourseModulePrefetchDelegate } from '@features/course/services/module-prefetch-delegate';
|
||||
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
|
||||
import { CoreCronDelegate } from '@services/cron';
|
||||
import { CorePluginFileDelegate } from '@services/plugin-file-delegate';
|
||||
import { CORE_SITE_SCHEMAS } from '@services/sites';
|
||||
import { AddonModScormComponentsModule } from './components/components.module';
|
||||
import { OFFLINE_SITE_SCHEMA } from './services/database/scorm';
|
||||
|
@ -26,6 +27,7 @@ import { AddonModScormGradeLinkHandler } from './services/handlers/grade-link';
|
|||
import { AddonModScormIndexLinkHandler } from './services/handlers/index-link';
|
||||
import { AddonModScormListLinkHandler } from './services/handlers/list-link';
|
||||
import { AddonModScormModuleHandler, AddonModScormModuleHandlerService } from './services/handlers/module';
|
||||
import { AddonModScormPluginFileHandler } from './services/handlers/pluginfile';
|
||||
import { AddonModScormPrefetchHandler } from './services/handlers/prefetch';
|
||||
import { AddonModScormSyncCronHandler } from './services/handlers/sync-cron';
|
||||
import { AddonModScormProvider } from './services/scorm';
|
||||
|
@ -69,6 +71,7 @@ const routes: Routes = [
|
|||
CoreContentLinksDelegate.registerHandler(AddonModScormGradeLinkHandler.instance);
|
||||
CoreContentLinksDelegate.registerHandler(AddonModScormIndexLinkHandler.instance);
|
||||
CoreContentLinksDelegate.registerHandler(AddonModScormListLinkHandler.instance);
|
||||
CorePluginFileDelegate.registerHandler(AddonModScormPluginFileHandler.instance);
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -20,6 +20,7 @@ import { Subject } from 'rxjs';
|
|||
import { CoreCourseBlock } from '@features/course/services/course';
|
||||
import { Params } from '@angular/router';
|
||||
import { makeSingleton } from '@singletons';
|
||||
import { CoreBlockDefaultHandler } from './handlers/default-block';
|
||||
|
||||
/**
|
||||
* Interface that all blocks must implement.
|
||||
|
@ -93,7 +94,9 @@ export class CoreBlockDelegateService extends CoreDelegate<CoreBlockHandler> {
|
|||
|
||||
blocksUpdateObservable: Subject<void>;
|
||||
|
||||
constructor() {
|
||||
constructor(
|
||||
protected defaultHandler: CoreBlockDefaultHandler,
|
||||
) {
|
||||
super('CoreBlockDelegate', true);
|
||||
|
||||
this.blocksUpdateObservable = new Subject<void>();
|
||||
|
|
Loading…
Reference in New Issue