MOBILE-3833 mycourses: Fix close app using back button
parent
c1a83f5df0
commit
9c1553c46b
|
@ -16,15 +16,11 @@ import { Injector, NgModule } from '@angular/core';
|
|||
import { RouterModule, ROUTES, Routes } from '@angular/router';
|
||||
|
||||
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
|
||||
import { AddonPrivateFilesUserHandlerService } from './services/handlers/user';
|
||||
|
||||
function buildRoutes(injector: Injector): Routes {
|
||||
return [
|
||||
{
|
||||
path: 'root',
|
||||
data: {
|
||||
mainMenuTabRoot: AddonPrivateFilesUserHandlerService.PAGE_NAME,
|
||||
},
|
||||
loadChildren: () => import('./pages/index/index.module').then(m => m.AddonPrivateFilesIndexPageModule),
|
||||
},
|
||||
{
|
||||
|
|
|
@ -21,12 +21,16 @@ import { CoreBlockComponentsModule } from '@features/block/components/components
|
|||
import { CoreCoursesMyCoursesPage } from './my';
|
||||
import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module';
|
||||
import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module';
|
||||
import { CoreCoursesMyCoursesMainMenuHandlerService } from '@features/courses/services/handlers/my-courses-mainmenu';
|
||||
|
||||
function buildRoutes(injector: Injector): Routes {
|
||||
return [
|
||||
{
|
||||
path: '',
|
||||
component: CoreCoursesMyCoursesPage,
|
||||
data: {
|
||||
mainMenuTabRoot: CoreCoursesMyCoursesMainMenuHandlerService.PAGE_NAME,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'list',
|
||||
|
|
Loading…
Reference in New Issue