monitor/src/app/deposit/datasets/depositDatasets.component.ts

22 lines
572 B
TypeScript

import {Component, Input} from '@angular/core';
import {PiwikHelper} from '../../utils/piwikHelper';
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
@Component({
selector: 'openaire-deposit-datasets',
template: `
<deposit-datasets [piwikSiteId]=piwikSiteId>
</deposit-datasets>
`
})
export class OpenaireDepositDatasetsComponent {
piwikSiteId = null;
constructor ( ) {
var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname);
this.piwikSiteId = PiwikHelper.siteIDs[communityId];
}
}