From 2b60f63d3d471709041a2660bc225caa03ff0d2a Mon Sep 17 00:00:00 2001 From: argirok Date: Thu, 2 Nov 2023 14:56:35 +0200 Subject: [PATCH] app component: init portal, add track event test --- src/app/app.component.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5c78487..71f1cd2 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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() {