[Connect | Trunk]: Add Previous Route Recorder to all routes.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@59262 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
b1654dbd84
commit
64cea88309
|
@ -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: [
|
||||
|
|
|
@ -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]}
|
||||
])
|
||||
]
|
||||
})
|
||||
|
|
|
@ -9,7 +9,6 @@ import {PiwikHelper} from "../../utils/piwikHelper";
|
|||
template: `
|
||||
<search-research-results resultType="result" [simpleView]="false" [customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false" [showBreadcrumb]="true"></search-research-results>
|
||||
`
|
||||
|
||||
})
|
||||
export class OpenaireSearchResearchResultsComponent {
|
||||
connectCommunityId:string;
|
||||
|
|
|
@ -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 {
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import {PiwikHelper} from "../../utils/piwikHelper";
|
|||
@Component({
|
||||
selector: 'openaire-search-results',
|
||||
template: `
|
||||
<search-research-results resultType="result" openaireLink="https://beta.explore.openaire.eu/search/find/publications"
|
||||
<search-research-results resultType="result" openaireLink="https://beta.explore.openaire.eu/search/find/research-outcomes"
|
||||
[customFilter]=customFilter [piwikSiteId]="piwikSiteId" [hasPrefix]="false"
|
||||
[includeOnlyResultsAndFilter]="false" [showBreadcrumb]="true" [showAdvancedSearchLink]="true"></search-research-results>
|
||||
`
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -21,7 +21,6 @@ import {BreadcrumbsModule} from "../openaireLibrary/utils/breadcrumbs/breadcrumb
|
|||
declarations: [
|
||||
SubjectsComponent
|
||||
],
|
||||
providers: [],
|
||||
exports: [
|
||||
SubjectsComponent
|
||||
]
|
||||
|
|
|
@ -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 {
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
import {Component} from "@angular/core";
|
||||
|
||||
@Component({
|
||||
selector: 'verification-manager',
|
||||
template: `<div>test</div>`
|
||||
})
|
||||
export class VerificationManagerComponent {
|
||||
|
||||
}
|
|
@ -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 {}
|
Loading…
Reference in New Issue