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