[Trunk | Library]: dataProvider.component (Landing): call 'getDataProviderAggregationStatus()' method (info from datasources API) only in browser (not server).

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56140 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-06-20 13:55:58 +00:00
parent d76b8bf68f
commit 0cbc84677b
1 changed files with 3 additions and 2 deletions

View File

@ -174,8 +174,9 @@ export class DataProviderComponent {
data => {
this.dataProviderInfo = data;
this.seoService.createLinkForCanonicalURL(this.properties.baseLink+this._router.url);
this.getDataProviderAggregationStatus(this.dataProviderInfo.originalId);
if (typeof document !== 'undefined') {
this.getDataProviderAggregationStatus(this.dataProviderInfo.originalId);
}
this.initTabs();
this.showTabs = true ;
this.updateTitle(this.dataProviderInfo.title.name);