35 lines
783 B
TypeScript
35 lines
783 B
TypeScript
|
import {Component, Input} from '@angular/core';
|
||
|
import {ActivatedRoute} from '@angular/router';
|
||
|
|
||
|
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'openaire-deposit',
|
||
|
template: `
|
||
|
<deposit-first-page></deposit-first-page>
|
||
|
`
|
||
|
})
|
||
|
|
||
|
export class OpenaireDepositComponent {
|
||
|
properties:EnvProperties;
|
||
|
|
||
|
piwikSiteId = null;
|
||
|
|
||
|
constructor ( private route: ActivatedRoute ) {
|
||
|
}
|
||
|
|
||
|
public ngOnInit() {
|
||
|
this.route.data
|
||
|
.subscribe((data: { envSpecific: EnvProperties }) => {
|
||
|
this.properties = data.envSpecific;
|
||
|
this.route.queryParams.subscribe(params => {
|
||
|
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
|
||
|
private handleError(message: string, error) {
|
||
|
console.error("Deposit First Page: "+message, error);
|
||
|
}
|
||
|
}
|