MOBILE-4616 url: Move url constants to a file
parent
65a5659d47
commit
c2caa15175
|
@ -33,7 +33,6 @@ import { ADDON_MOD_URL_COMPONENT } from '../constants';
|
||||||
export class AddonModUrlProvider {
|
export class AddonModUrlProvider {
|
||||||
|
|
||||||
protected static readonly ROOT_CACHE_KEY = 'mmaModUrl:';
|
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.
|
* Get the final display type for a certain URL. Based on Moodle's url_get_final_display_type.
|
||||||
|
|
|
@ -35,4 +35,4 @@ const routes: Routes = [
|
||||||
AddonModUrlIndexPage,
|
AddonModUrlIndexPage,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AddonModUrlLazyModule {}
|
export default class AddonModUrlLazyModule {}
|
||||||
|
|
|
@ -27,7 +27,7 @@ import { ADDON_MOD_URL_PAGE_NAME } from './constants';
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: ADDON_MOD_URL_PAGE_NAME,
|
path: ADDON_MOD_URL_PAGE_NAME,
|
||||||
loadChildren: () => import('./url-lazy.module').then(m => m.AddonModUrlLazyModule),
|
loadChildren: () => import('./url-lazy.module'),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue