Add role verification in all entities (repository, rfo, rpo)
This commit is contained in:
parent
11860054a0
commit
35deb2fc4a
|
@ -43,6 +43,7 @@ import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sideb
|
|||
<div *ngIf="!this.alias || this.stakeholder" class="uk-margin-large-top uk-margin-large-bottom">
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
<role-verification *ngIf="stakeholder" [id]="stakeholder.alias" [name]="stakeholder.name" [type]="stakeholder.type"></role-verification>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
@ -96,4 +97,4 @@ export class RepositoryComponent extends StakeholderBaseComponent implements OnI
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ import {CommonModule} from "@angular/common";
|
|||
import {RepositoryComponent} from "./repository.component";
|
||||
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
|
||||
import {Route, RouterModule} from "@angular/router";
|
||||
import {RoleVerificationModule} from "../openaireLibrary/role-verification/role-verification.module";
|
||||
const routes: Route[] = [
|
||||
{
|
||||
path: '', component: RepositoryComponent, children: [
|
||||
|
@ -14,9 +15,9 @@ const routes: Route[] = [
|
|||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule],
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule, RoleVerificationModule],
|
||||
declarations: [RepositoryComponent],
|
||||
exports: [RepositoryComponent],
|
||||
})
|
||||
export class RepositoryModule {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sideb
|
|||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
</div>
|
||||
<role-verification *ngIf="stakeholder" [id]="stakeholder.alias" [name]="stakeholder.name" [type]="stakeholder.type"></role-verification>
|
||||
`
|
||||
})
|
||||
export class RfoComponent extends StakeholderBaseComponent implements OnInit {
|
||||
|
@ -101,4 +102,4 @@ export class RfoComponent extends StakeholderBaseComponent implements OnInit {
|
|||
super.ngOnDestroy();
|
||||
this.layoutService.setRootClass(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ import {CommonModule} from "@angular/common";
|
|||
import {Route, RouterModule} from "@angular/router";
|
||||
import {RfoComponent} from "./rfo.component";
|
||||
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
|
||||
import {RoleVerificationModule} from "../openaireLibrary/role-verification/role-verification.module";
|
||||
const routes: Route[] = [
|
||||
{
|
||||
path: '', component: RfoComponent, children: [
|
||||
|
@ -14,7 +15,7 @@ const routes: Route[] = [
|
|||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule],
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule, RoleVerificationModule],
|
||||
declarations: [RfoComponent],
|
||||
exports: [RfoComponent],
|
||||
})
|
||||
|
|
|
@ -42,6 +42,8 @@ import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sideb
|
|||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
</div>
|
||||
<role-verification *ngIf="stakeholder" [id]="stakeholder.alias" [name]="stakeholder.name" [type]="stakeholder.type"></role-verification>
|
||||
|
||||
`
|
||||
})
|
||||
export class RpoComponent extends StakeholderBaseComponent implements OnInit {
|
||||
|
|
|
@ -3,6 +3,7 @@ import {CommonModule} from "@angular/common";
|
|||
import {Route, RouterModule} from "@angular/router";
|
||||
import {RpoComponent} from "./rpo.component";
|
||||
import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module";
|
||||
import {RoleVerificationModule} from "../openaireLibrary/role-verification/role-verification.module";
|
||||
const routes: Route[] = [
|
||||
{
|
||||
path: '', component: RpoComponent, children: [
|
||||
|
@ -14,7 +15,7 @@ const routes: Route[] = [
|
|||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule],
|
||||
imports: [CommonModule, RouterModule.forChild(routes), LoadingModule, RoleVerificationModule],
|
||||
declarations: [RpoComponent],
|
||||
exports: [RpoComponent],
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue