mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-191] change routing for subscriptions-page
This commit is contained in:
@@ -233,8 +233,8 @@ import { ThemedPageErrorComponent } from './page-error/themed-page-error.compone
|
||||
},
|
||||
{
|
||||
path: 'subscriptions',
|
||||
loadChildren: () => import('./subscriptions-page/subscriptions-page-routing.module')
|
||||
.then((m) => m.SubscriptionsPageRoutingModule),
|
||||
loadChildren: () => import('./subscriptions-page/subscriptions-page-routes')
|
||||
.then((m) => m.ROUTES),
|
||||
canActivate: [AuthenticatedGuard]
|
||||
},
|
||||
{ path: '**', pathMatch: 'full', component: ThemedPageNotFoundComponent },
|
||||
|
@@ -3,7 +3,6 @@ import { BrowseByComponent } from './browse-by.component';
|
||||
import { ThemedBrowseByComponent } from './themed-browse-by.component';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ResultsBackButtonModule } from '../results-back-button/results-back-button.module';
|
||||
import { AccessControlRoutingModule } from '../../access-control/access-control-routing.module';
|
||||
|
||||
const DECLARATIONS = [
|
||||
BrowseByComponent,
|
||||
@@ -13,7 +12,6 @@ const DECLARATIONS = [
|
||||
@NgModule({
|
||||
imports: [
|
||||
ResultsBackButtonModule,
|
||||
AccessControlRoutingModule,
|
||||
CommonModule,
|
||||
...DECLARATIONS,
|
||||
],
|
||||
|
17
src/app/subscriptions-page/subscriptions-page-routes.ts
Normal file
17
src/app/subscriptions-page/subscriptions-page-routes.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Route } from '@angular/router';
|
||||
import { SubscriptionsPageComponent } from './subscriptions-page.component';
|
||||
|
||||
export const ROUTES: Route[] = [
|
||||
{
|
||||
path: '',
|
||||
data: {
|
||||
title: 'subscriptions.title',
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SubscriptionsPageComponent,
|
||||
},
|
||||
]
|
||||
},
|
||||
];
|
@@ -1,27 +0,0 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { SubscriptionsPageModule } from './subscriptions-page.module';
|
||||
import { SubscriptionsPageComponent } from './subscriptions-page.component';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
SubscriptionsPageModule,
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: '',
|
||||
data: {
|
||||
title: 'subscriptions.title',
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: SubscriptionsPageComponent,
|
||||
},
|
||||
]
|
||||
},
|
||||
])
|
||||
]
|
||||
})
|
||||
export class SubscriptionsPageRoutingModule {
|
||||
}
|
Reference in New Issue
Block a user