Filter claims by community

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@50970 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-02-28 12:31:04 +00:00
parent 4420cce2f4
commit c90c80c371
2 changed files with 5 additions and 3 deletions

View File

@ -33,9 +33,9 @@ export class DisplayClaimsComponent {
this.fetchId = Session.getUserEmail(); this.fetchId = Session.getUserEmail();
}else{ }else{
this.fetchBy = params['fetchBy']; this.fetchBy = (this.fetchBy)?this.fetchBy:params['fetchBy'];
this.fetchBy = (this.types.indexOf(this.fetchBy) != -1)? this.fetchBy:'All'; this.fetchBy = (this.types.indexOf(this.fetchBy) != -1)? this.fetchBy:'All';
this.fetchId = params['fetchId']; this.fetchId =(this.fetchId)?this.fetchId: params['fetchId'];
this.fetchId = this.fetchId?this.fetchId:''; this.fetchId = this.fetchId?this.fetchId:'';
} }

View File

@ -19,7 +19,7 @@ import { Meta} from '../../sharedComponents/metaService';
</div> </div>
<div> <div>
<div class="uk-text-right"><a routerLink="/participate/claim">Add more Links?</a></div> <div class="uk-text-right"><a routerLink="/participate/claim">Add more Links?</a></div>
<displayClaims [enableDelete]=true [myClaims]=false [isAdmin]=true></displayClaims> <displayClaims [enableDelete]=true [myClaims]=false [isAdmin]=true [fetchBy]= fetchBy [fetchId]=fetchId></displayClaims>
</div> </div>
</div> </div>
</div> </div>
@ -30,6 +30,8 @@ import { Meta} from '../../sharedComponents/metaService';
}) })
export class ClaimsAdminComponent { export class ClaimsAdminComponent {
@Input() fetchBy:string;
@Input() fetchId:string;
constructor ( private _meta: Meta ) { constructor ( private _meta: Meta ) {
this._meta.setTitle("OpenAIRE | Claims Administrator"); this._meta.setTitle("OpenAIRE | Claims Administrator");
} }