Use logoUrl pipe and stringUtils getLogoUrl for communities LogoUrl
This commit is contained in:
parent
26ea5cc265
commit
318e7a2c63
|
@ -14,6 +14,7 @@ import {arrow_left} from "./openaireLibrary/utils/icons/icons";
|
||||||
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll";
|
import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll";
|
||||||
import {ConnectHelper} from './openaireLibrary/connect/connectHelper';
|
import {ConnectHelper} from './openaireLibrary/connect/connectHelper';
|
||||||
import {ConfigurationService} from './openaireLibrary/utils/configuration/configuration.service';
|
import {ConfigurationService} from './openaireLibrary/utils/configuration/configuration.service';
|
||||||
|
import {StringUtils} from "./openaireLibrary/utils/string-utils.class";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
@ -200,7 +201,7 @@ export class AppComponent implements OnInit {
|
||||||
this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {}));
|
this.userMenuItems.push(new MenuItem("", "User information", "", "/user-info", false, [], [], {}));
|
||||||
}
|
}
|
||||||
if (this.community) {
|
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.headerUrl = 'https://' + ((properties.environment !== 'production')?'beta.':'') + this.community.communityId + '.openaire.eu';
|
||||||
this.menuHeader = {
|
this.menuHeader = {
|
||||||
route: "/" + this.community.communityId,
|
route: "/" + this.community.communityId,
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 79e6748d7f4ed7da329ed7d2678a88320a2bf1a5
|
Subproject commit 7ef741c205a3659e28d1f8521a37e2cc0d969de5
|
|
@ -69,7 +69,7 @@ type Tab = 'all' | 'communities' | 'ris';
|
||||||
{{community.shortTitle}}
|
{{community.shortTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="community.logoUrl" class="logo uk-margin-top uk-margin-bottom">
|
<div *ngIf="community.logoUrl" class="logo uk-margin-top uk-margin-bottom">
|
||||||
<img [src]="community.getLogoUrl() | urlPrefix">
|
<img [src]="community | logoUrl | urlPrefix">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,10 +11,11 @@ import {CommunitiesService} from '../../openaireLibrary/connect/communities/comm
|
||||||
import {IconsModule} from '../../openaireLibrary/utils/icons/icons.module';
|
import {IconsModule} from '../../openaireLibrary/utils/icons/icons.module';
|
||||||
import {IconsService} from '../../openaireLibrary/utils/icons/icons.service';
|
import {IconsService} from '../../openaireLibrary/utils/icons/icons.service';
|
||||||
import {earth, group, lock} from '../../openaireLibrary/utils/icons/icons';
|
import {earth, group, lock} from '../../openaireLibrary/utils/icons/icons';
|
||||||
|
import {LogoUrlPipeModule} from "../../openaireLibrary/utils/pipes/logoUrlPipe.module";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule, ManageCommunitiesRoutingModule, RouterModule, PageContentModule, LoadingModule, UrlPrefixModule, IconsModule
|
CommonModule, ManageCommunitiesRoutingModule, RouterModule, PageContentModule, LoadingModule, UrlPrefixModule, IconsModule, LogoUrlPipeModule
|
||||||
],
|
],
|
||||||
declarations: [ManageCommunitiesComponent],
|
declarations: [ManageCommunitiesComponent],
|
||||||
providers: [LoginGuard, CommunitiesService],
|
providers: [LoginGuard, CommunitiesService],
|
||||||
|
|
Loading…
Reference in New Issue