2018-01-23 11:07:39 +01:00
|
|
|
import {Component, Input} from '@angular/core';
|
2018-11-14 15:16:19 +01:00
|
|
|
import {Observable} from 'rxjs/Observable';
|
|
|
|
import {ActivatedRoute} from '@angular/router';
|
|
|
|
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
|
|
|
|
2018-01-23 11:07:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'openaire-my-claims',
|
|
|
|
template: `
|
2018-11-14 15:16:19 +01:00
|
|
|
<my-claims showLatestClaims=true [claimsInfoURL]=claimsInfoURL>
|
2018-01-23 11:07:39 +01:00
|
|
|
</my-claims>
|
|
|
|
`
|
|
|
|
|
|
|
|
})
|
|
|
|
export class OpenaireMyClaimsComponent {
|
2018-11-14 15:16:19 +01:00
|
|
|
claimsInfoURL:string;
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2018-11-14 15:16:19 +01:00
|
|
|
constructor (private route: ActivatedRoute) {
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2018-11-14 15:16:19 +01:00
|
|
|
}
|
|
|
|
public ngOnInit() {
|
|
|
|
this.route.data
|
|
|
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
|
|
|
this.claimsInfoURL = data.envSpecific.claimsInformationLink;
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2018-11-14 15:16:19 +01:00
|
|
|
});
|
|
|
|
}
|
2018-01-23 11:07:39 +01:00
|
|
|
}
|