mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-191] change routing for import-external-page
This commit is contained in:
@@ -174,8 +174,8 @@ import { ThemedPageErrorComponent } from './page-error/themed-page-error.compone
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'import-external',
|
path: 'import-external',
|
||||||
loadChildren: () => import('./import-external-page/import-external-page.module')
|
loadChildren: () => import('./import-external-page/import-external-page-routes')
|
||||||
.then((m) => m.ImportExternalPageModule),
|
.then((m) => m.ROUTES),
|
||||||
canActivate: [EndUserAgreementCurrentUserGuard]
|
canActivate: [EndUserAgreementCurrentUserGuard]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
18
src/app/import-external-page/import-external-page-routes.ts
Normal file
18
src/app/import-external-page/import-external-page-routes.ts
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { Route } from '@angular/router';
|
||||||
|
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
|
||||||
|
import {
|
||||||
|
ThemedSubmissionImportExternalComponent
|
||||||
|
} from '../submission/import-external/themed-submission-import-external.component';
|
||||||
|
|
||||||
|
export const ROUTES: Route[] = [
|
||||||
|
{
|
||||||
|
canActivate: [AuthenticatedGuard],
|
||||||
|
path: '',
|
||||||
|
component: ThemedSubmissionImportExternalComponent,
|
||||||
|
pathMatch: 'full',
|
||||||
|
data: {
|
||||||
|
title: 'submission.import-external.page.title'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
@@ -1,22 +0,0 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
|
|
||||||
import { ImportExternalRoutingModule } from './import-external-routing.module';
|
|
||||||
import { SubmissionModule } from '../submission/submission.module';
|
|
||||||
import { ImportExternalPageComponent } from './import-external-page.component';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
ImportExternalRoutingModule,
|
|
||||||
SubmissionModule,
|
|
||||||
ImportExternalPageComponent
|
|
||||||
]
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This module handles all components that are necessary for the submission external import page
|
|
||||||
*/
|
|
||||||
export class ImportExternalPageModule {
|
|
||||||
|
|
||||||
}
|
|
@@ -1,24 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule } from '@angular/router';
|
|
||||||
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
|
|
||||||
import { ThemedSubmissionImportExternalComponent } from '../submission/import-external/themed-submission-import-external.component';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
RouterModule.forChild([
|
|
||||||
{
|
|
||||||
canActivate: [ AuthenticatedGuard ],
|
|
||||||
path: '',
|
|
||||||
component: ThemedSubmissionImportExternalComponent,
|
|
||||||
pathMatch: 'full',
|
|
||||||
data: {
|
|
||||||
title: 'submission.import-external.page.title'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
])
|
|
||||||
],
|
|
||||||
providers: [ ]
|
|
||||||
})
|
|
||||||
export class ImportExternalRoutingModule {
|
|
||||||
|
|
||||||
}
|
|
Reference in New Issue
Block a user