diff --git a/src/app/claims/linking/linking-routing.module.ts b/src/app/claims/linking/linking-routing.module.ts index 2b43d20..f5ec9c5 100644 --- a/src/app/claims/linking/linking-routing.module.ts +++ b/src/app/claims/linking/linking-routing.module.ts @@ -1,11 +1,10 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; -import { OpenaireLinkingComponent } from './linkingGeneric.component'; - -import {LoginGuard} from '../../openaireLibrary/login/loginGuard.guard'; +import {NgModule} from '@angular/core'; +import {RouterModule} from '@angular/router'; +import {OpenaireLinkingComponent} from './linkingGeneric.component'; import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'; import {ConnectSubscriberGuard} from '../../openaireLibrary/connect/communityGuard/connectSubscriber.guard'; + //LoginGuard @NgModule({ imports: [ diff --git a/src/app/contact/contact-routing.module.ts b/src/app/contact/contact-routing.module.ts index e75fd37..e9cd5a0 100644 --- a/src/app/contact/contact-routing.module.ts +++ b/src/app/contact/contact-routing.module.ts @@ -2,11 +2,12 @@ import { NgModule } from '@angular/core'; import {RouterModule} from '@angular/router'; import {ContactComponent} from './contact.component'; import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard"; +import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; @NgModule({ imports: [ RouterModule.forChild([ - { path: '', component: ContactComponent, canActivate: [IsRouteEnabled]} + { path: '', component: ContactComponent, canActivate: [IsRouteEnabled], canDeactivate: [PreviousRouteRecorder]} ]) ] }) diff --git a/src/app/searchPages/advanced/searchResearchResults.component.ts b/src/app/searchPages/advanced/searchResearchResults.component.ts index 61406f4..82a120e 100644 --- a/src/app/searchPages/advanced/searchResearchResults.component.ts +++ b/src/app/searchPages/advanced/searchResearchResults.component.ts @@ -9,7 +9,6 @@ import {PiwikHelper} from "../../utils/piwikHelper"; template: ` ` - }) export class OpenaireSearchResearchResultsComponent { connectCommunityId:string; diff --git a/src/app/searchPages/find/mainSearch-routing.module.ts b/src/app/searchPages/find/mainSearch-routing.module.ts index 72382fe..9104f19 100644 --- a/src/app/searchPages/find/mainSearch-routing.module.ts +++ b/src/app/searchPages/find/mainSearch-routing.module.ts @@ -1,17 +1,16 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; +import {NgModule} from '@angular/core'; +import {RouterModule} from '@angular/router'; -import{OpenaireSearchComponent} from './search.component'; +import {OpenaireSearchComponent} from './search.component'; import {FreeGuard} from "../../openaireLibrary/login/freeGuard.guard"; import {PreviousRouteRecorder} from "../../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; @NgModule({ imports: [ RouterModule.forChild([ - // { path: '', component: OpenaireSearchComponent } - { path: '', component: OpenaireSearchComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] } - + {path: '', component: OpenaireSearchComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder]} ]) ] }) -export class MainSearchRoutingModule { } +export class MainSearchRoutingModule { +} diff --git a/src/app/searchPages/simple/searchResearchResults.component.ts b/src/app/searchPages/simple/searchResearchResults.component.ts index fc4ea2a..9f4d061 100644 --- a/src/app/searchPages/simple/searchResearchResults.component.ts +++ b/src/app/searchPages/simple/searchResearchResults.component.ts @@ -8,7 +8,7 @@ import {PiwikHelper} from "../../utils/piwikHelper"; @Component({ selector: 'openaire-search-results', template: ` - ` diff --git a/src/app/statistics/statistics-routing.module.ts b/src/app/statistics/statistics-routing.module.ts index da2de6a..3b0bc0b 100644 --- a/src/app/statistics/statistics-routing.module.ts +++ b/src/app/statistics/statistics-routing.module.ts @@ -1,10 +1,9 @@ -import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; +import {NgModule} from '@angular/core'; +import {RouterModule} from '@angular/router'; -import{StatisticsComponent} from './statistics.component'; +import {StatisticsComponent} from './statistics.component'; import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard'; import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard'; -// import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard' @NgModule({ imports: [ diff --git a/src/app/subjects/subjects.module.ts b/src/app/subjects/subjects.module.ts index 13c7493..560e9c0 100644 --- a/src/app/subjects/subjects.module.ts +++ b/src/app/subjects/subjects.module.ts @@ -21,7 +21,6 @@ import {BreadcrumbsModule} from "../openaireLibrary/utils/breadcrumbs/breadcrumb declarations: [ SubjectsComponent ], - providers: [], exports: [ SubjectsComponent ] diff --git a/src/app/verification-manager/verification-manager-routing.module.ts b/src/app/verification-manager/verification-manager-routing.module.ts new file mode 100644 index 0000000..b04bf8b --- /dev/null +++ b/src/app/verification-manager/verification-manager-routing.module.ts @@ -0,0 +1,15 @@ +import { NgModule} from '@angular/core'; +import { RouterModule } from '@angular/router'; +import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard"; +import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard"; +import {VerificationComponent} from "../openaireLibrary/verification/verification.component"; + +@NgModule({ + imports: [ + RouterModule.forChild([ + { path: '', component: VerificationComponent, canActivate: [IsRouteEnabled], canDeactivate: [PreviousRouteRecorder]} + ]) + ] +}) +export class VerificationManagerRoutingModule { +} diff --git a/src/app/verification-manager/verification-manager.component.ts b/src/app/verification-manager/verification-manager.component.ts new file mode 100644 index 0000000..871a941 --- /dev/null +++ b/src/app/verification-manager/verification-manager.component.ts @@ -0,0 +1,9 @@ +import {Component} from "@angular/core"; + +@Component({ + selector: 'verification-manager', + template: `
test
` +}) +export class VerificationManagerComponent { + +} diff --git a/src/app/verification-manager/verification-manager.module.ts b/src/app/verification-manager/verification-manager.module.ts new file mode 100644 index 0000000..165d731 --- /dev/null +++ b/src/app/verification-manager/verification-manager.module.ts @@ -0,0 +1,14 @@ +import {NgModule} from "@angular/core"; +import {CommonModule} from "@angular/common"; +import {VerificationManagerComponent} from "./verification-manager.component"; +import {VerificationModule} from "../openaireLibrary/verification/verification.module"; +import {VerificationGuard} from "../openaireLibrary/login/verification.guard"; +import {VerificationManagerRoutingModule} from "./verification-manager-routing.module"; + +@NgModule({ + imports: [CommonModule, VerificationModule, VerificationManagerRoutingModule], + declarations: [VerificationManagerComponent], + exports: [VerificationManagerComponent], + providers: [VerificationGuard] +}) +export class VerificationManagerModule {}