2017-12-19 13:53:46 +01:00
|
|
|
import {Component, ViewChild, Input} from '@angular/core';
|
|
|
|
import {Location} from '@angular/common';
|
|
|
|
import {Observable} from 'rxjs/Observable';
|
2018-02-12 14:38:30 +01:00
|
|
|
import { Meta} from '../../sharedComponents/metaService';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'claims-admin',
|
|
|
|
template: `
|
|
|
|
|
2018-03-29 10:34:44 +02:00
|
|
|
<div id="tm-main" [class]="((isConnect)?'':'uk-section') +' uk-margin-small-top tm-middle'" >
|
2017-12-19 13:53:46 +01:00
|
|
|
<div uk-grid uk-grid>
|
|
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
|
|
|
<div class="uk-container">
|
|
|
|
<div class="uk-article-title custom-article-title">
|
|
|
|
Claims Administrator
|
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-29 10:34:44 +02:00
|
|
|
<div class="uk-text-right">
|
|
|
|
<a *ngIf="!fetchBy || fetchBy != 'Context'" routerLink="/participate/claim">Add more Links?</a>
|
|
|
|
<a *ngIf="isConnect && fetchBy && fetchBy == 'Context' && fetchId" [href]="'https://beta.'+fetchId+'.openaire.eu/participate/claim'" target="_blank">Add more Links?</a>
|
|
|
|
</div>
|
2018-03-16 13:28:19 +01:00
|
|
|
<displayClaims [enableDelete]=true [myClaims]=false [isAdmin]=true [fetchBy]= fetchBy [fetchId]=fetchId
|
|
|
|
[communityId]="(fetchBy && fetchBy == 'Context')?fetchId:null"></displayClaims>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
`,
|
|
|
|
|
|
|
|
})
|
|
|
|
export class ClaimsAdminComponent {
|
2018-02-28 13:31:04 +01:00
|
|
|
@Input() fetchBy:string;
|
|
|
|
@Input() fetchId:string;
|
2018-03-29 10:34:44 +02:00
|
|
|
@Input() isConnect:boolean = false;
|
2018-03-16 13:28:19 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
constructor ( private _meta: Meta ) {
|
2018-03-29 10:34:44 +02:00
|
|
|
if(this.isConnect){
|
|
|
|
this._meta.setTitle("OpenAIRE Connect | Claims Administrator");
|
2018-03-16 13:28:19 +01:00
|
|
|
|
2018-03-29 10:34:44 +02:00
|
|
|
}else{
|
|
|
|
this._meta.setTitle("OpenAIRE | Claims Administrator");
|
2018-03-16 13:28:19 +01:00
|
|
|
}
|
2018-03-29 10:34:44 +02:00
|
|
|
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|
|
|
|
ngOnInit() {
|
|
|
|
}
|
|
|
|
}
|