Filter claims by community
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@50970 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
57fe837b5b
commit
6a5a393df1
|
@ -1,18 +1,22 @@
|
||||||
|
|
||||||
import { Component, ViewChild, OnInit } from '@angular/core';
|
import { Component, ViewChild, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
// import{ClaimsAdminModule} from 'ng-openaire-library';
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'claims',
|
selector: 'claims',
|
||||||
template: ` <claims-admin>
|
template: ` <claims-admin fetchBy="Context" [fetchId]=communityPid>
|
||||||
</claims-admin>`,
|
</claims-admin>`,
|
||||||
})
|
})
|
||||||
|
|
||||||
export class ClaimsComponent implements OnInit {
|
export class ClaimsComponent implements OnInit {
|
||||||
|
|
||||||
|
communityPid:string;
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
|
this.route.queryParams.subscribe(params => {
|
||||||
|
this.communityPid = params['community'];
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute) {}
|
constructor(private route: ActivatedRoute) {}
|
||||||
|
|
Loading…
Reference in New Issue