From 318e7a2c6313327b4ad79c75f37a4d27c8bc3290 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 12 Nov 2021 14:22:44 +0200 Subject: [PATCH] Use logoUrl pipe and stringUtils getLogoUrl for communities LogoUrl --- src/app/app.component.ts | 3 ++- src/app/openaireLibrary | 2 +- .../pages/manage-communities/manage-communities.component.ts | 2 +- src/app/pages/manage-communities/manage-communities.module.ts | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 66dc3f4..7416df4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -14,6 +14,7 @@ import {arrow_left} from "./openaireLibrary/utils/icons/icons"; import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll"; import {ConnectHelper} from './openaireLibrary/connect/connectHelper'; import {ConfigurationService} from './openaireLibrary/utils/configuration/configuration.service'; +import {StringUtils} from "./openaireLibrary/utils/string-utils.class"; @Component({ selector: 'app-root', @@ -200,7 +201,7 @@ export class AppComponent implements OnInit { this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {})); } if (this.community) { - this.headerLogoUrl = this.community.getLogoUrl(); + this.headerLogoUrl = StringUtils.getLogoUrl(this.community); this.headerUrl = 'https://' + ((properties.environment !== 'production')?'beta.':'') + this.community.communityId + '.openaire.eu'; this.menuHeader = { route: "/" + this.community.communityId, diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 79e6748..7ef741c 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 79e6748d7f4ed7da329ed7d2678a88320a2bf1a5 +Subproject commit 7ef741c205a3659e28d1f8521a37e2cc0d969de5 diff --git a/src/app/pages/manage-communities/manage-communities.component.ts b/src/app/pages/manage-communities/manage-communities.component.ts index 5ee0388..465bf78 100644 --- a/src/app/pages/manage-communities/manage-communities.component.ts +++ b/src/app/pages/manage-communities/manage-communities.component.ts @@ -69,7 +69,7 @@ type Tab = 'all' | 'communities' | 'ris'; {{community.shortTitle}} diff --git a/src/app/pages/manage-communities/manage-communities.module.ts b/src/app/pages/manage-communities/manage-communities.module.ts index 84f4fc4..db83fdd 100644 --- a/src/app/pages/manage-communities/manage-communities.module.ts +++ b/src/app/pages/manage-communities/manage-communities.module.ts @@ -11,10 +11,11 @@ import {CommunitiesService} from '../../openaireLibrary/connect/communities/comm import {IconsModule} from '../../openaireLibrary/utils/icons/icons.module'; import {IconsService} from '../../openaireLibrary/utils/icons/icons.service'; import {earth, group, lock} from '../../openaireLibrary/utils/icons/icons'; +import {LogoUrlPipeModule} from "../../openaireLibrary/utils/pipes/logoUrlPipe.module"; @NgModule({ imports: [ - CommonModule, ManageCommunitiesRoutingModule, RouterModule, PageContentModule, LoadingModule, UrlPrefixModule, IconsModule + CommonModule, ManageCommunitiesRoutingModule, RouterModule, PageContentModule, LoadingModule, UrlPrefixModule, IconsModule, LogoUrlPipeModule ], declarations: [ManageCommunitiesComponent], providers: [LoginGuard, CommunitiesService],