app component: init portal, add track event test
This commit is contained in:
parent
67b2914598
commit
2b60f63d3d
|
@ -6,6 +6,8 @@ import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component
|
|||
import {BaseComponent} from "./openaireLibrary/sharedComponents/base/base.component";
|
||||
import {StakeholderEntities, stakeholderTypes} from "./openaireLibrary/monitor/entities/stakeholder";
|
||||
import {Option} from "./openaireLibrary/sharedComponents/input/input.component";
|
||||
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
|
||||
import {Portal} from "./openaireLibrary/utils/entities/adminTool/portal";
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
|
@ -48,8 +50,13 @@ export class AppComponent extends BaseComponent implements OnInit {
|
|||
menuItems:MenuItem[] = [];
|
||||
|
||||
constructor(private route: ActivatedRoute,
|
||||
private router: Router) {
|
||||
private router: Router, private configurationService: ConfigurationService) {
|
||||
super();
|
||||
configurationService.initStaticPortal(Portal.getMockCommunityInfo("noami", "Noami",[],[]));
|
||||
//Test track event
|
||||
// let json = {test: "json"}
|
||||
// this._piwikService.doTrackEvent(properties,"test", properties.piwikSiteId,location.href,"Linking", "Link", JSON.stringify(json) )
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
|
Loading…
Reference in New Issue