From c2caa151751b9bfdbf423ddad4d729f4e83801c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 11 Jul 2024 22:43:36 +0200 Subject: [PATCH] MOBILE-4616 url: Move url constants to a file --- src/addons/mod/url/services/url.ts | 1 - src/addons/mod/url/url-lazy.module.ts | 2 +- src/addons/mod/url/url.module.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/addons/mod/url/services/url.ts b/src/addons/mod/url/services/url.ts index 80825678b..cec979f77 100644 --- a/src/addons/mod/url/services/url.ts +++ b/src/addons/mod/url/services/url.ts @@ -33,7 +33,6 @@ import { ADDON_MOD_URL_COMPONENT } from '../constants'; export class AddonModUrlProvider { protected static readonly ROOT_CACHE_KEY = 'mmaModUrl:'; - static readonly COMPONENT = ADDON_MOD_URL_COMPONENT; /** * Get the final display type for a certain URL. Based on Moodle's url_get_final_display_type. diff --git a/src/addons/mod/url/url-lazy.module.ts b/src/addons/mod/url/url-lazy.module.ts index b6f4141c7..3fa447aff 100644 --- a/src/addons/mod/url/url-lazy.module.ts +++ b/src/addons/mod/url/url-lazy.module.ts @@ -35,4 +35,4 @@ const routes: Routes = [ AddonModUrlIndexPage, ], }) -export class AddonModUrlLazyModule {} +export default class AddonModUrlLazyModule {} diff --git a/src/addons/mod/url/url.module.ts b/src/addons/mod/url/url.module.ts index 2699d006b..563daf9c4 100644 --- a/src/addons/mod/url/url.module.ts +++ b/src/addons/mod/url/url.module.ts @@ -27,7 +27,7 @@ import { ADDON_MOD_URL_PAGE_NAME } from './constants'; const routes: Routes = [ { path: ADDON_MOD_URL_PAGE_NAME, - loadChildren: () => import('./url-lazy.module').then(m => m.AddonModUrlLazyModule), + loadChildren: () => import('./url-lazy.module'), }, ];