diff --git a/src/app/app.component.ts b/src/app/app.component.ts index e06b4a4..6390fc9 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -54,12 +54,14 @@ export class AppComponent { this.isPortalAdministrator = Session.isPortalAdministrator(); /*this.isPortalAdministrator = true;*/ } + this._communitiesService.updateCommunities(this.properties, this.properties.communityAPI + "communities"); + this.route.queryParams.subscribe(data => { this.communityId = ((data['communityId']) ? data['communityId'] : ""); this.communityType = null; this.menuItems = []; this.userMenuItems = []; - this._communitiesService.getCommunities(this.properties, this.properties.communityAPI + "communities").subscribe( + this._communitiesService.getCommunitiesState().subscribe( communities => { // this.community = community; this.userMenuItems = []; diff --git a/src/app/pages/wellcome/wellcome.component.ts b/src/app/pages/wellcome/wellcome.component.ts index f5e6644..cbad3cb 100644 --- a/src/app/pages/wellcome/wellcome.component.ts +++ b/src/app/pages/wellcome/wellcome.component.ts @@ -1,36 +1,154 @@ -import { Component, Input } from '@angular/core'; +import {Component, Input, OnInit} from '@angular/core'; import { Location } from '@angular/common'; +import {Session} from "../../openaireLibrary/login/utils/helper.class"; +import {MenuItem} from "../../openaireLibrary/sharedComponents/menu"; +import {EnvProperties} from "../../openaireLibrary/utils/properties/env-properties"; +import {ActivatedRoute} from "@angular/router"; +import {EnvironmentSpecificService} from "../../openaireLibrary/utils/properties/environment-specific.service"; +import {CommunitiesService} from "../../openaireLibrary/connect/communities/communities.service"; +import {CommunityInfo} from "../../openaireLibrary/connect/community/communityInfo"; @Component({ selector: 'wellcome', template: ` -