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:
argiro.kokogiannaki 2018-02-28 12:31:04 +00:00
parent 57fe837b5b
commit 6a5a393df1
1 changed files with 7 additions and 3 deletions

View File

@ -1,18 +1,22 @@
import { Component, ViewChild, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
// import{ClaimsAdminModule} from 'ng-openaire-library';
@Component({
selector: 'claims',
template: ` <claims-admin>
template: ` <claims-admin fetchBy="Context" [fetchId]=communityPid>
</claims-admin>`,
})
export class ClaimsComponent implements OnInit {
communityPid:string;
ngOnInit() {
this.route.queryParams.subscribe(params => {
this.communityPid = params['community'];
});
}
constructor(private route: ActivatedRoute) {}