Production release February 2024 [CONNECT] #34

Merged
konstantina.galouni merged 168 commits from develop into master 2024-02-15 11:04:20 +01:00
5 changed files with 13 additions and 0 deletions
Showing only changes of commit 79d49c80e3 - Show all commits

View File

@ -28,6 +28,9 @@
[class.hide-on-close]="backItem.icon">{{backItem.title}}</span> [class.hide-on-close]="backItem.icon">{{backItem.title}}</span>
</a> </a>
</div> </div>
<div *ngIf="logoURL" id="sidebar_logo" class="uk-margin-top">
<img [src]="logoURL">
</div>
<div *ngIf="items.length > 0" class="menu_section uk-margin-large-top" [class.mobile]="mobile" style="min-height: 30vh"> <div *ngIf="items.length > 0" class="menu_section uk-margin-large-top" [class.mobile]="mobile" style="min-height: 30vh">
<ul #nav class="uk-list uk-nav" [class.uk-list-large]="mobile" <ul #nav class="uk-list uk-nav" [class.uk-list-large]="mobile"
[class.uk-nav-default]="!mobile" [class.uk-nav-primary]="mobile" uk-nav="duration: 400"> [class.uk-nav-default]="!mobile" [class.uk-nav-primary]="mobile" uk-nav="duration: 400">

View File

@ -28,6 +28,7 @@ export class SideBarComponent implements OnInit, AfterViewInit, OnDestroy, OnCha
@Input() activeSubItem: string = ''; @Input() activeSubItem: string = '';
@Input() backItem: MenuItem = null; @Input() backItem: MenuItem = null;
@Input() queryParamsHandling; @Input() queryParamsHandling;
@Input() logoURL: string;
@ViewChild("nav") nav: ElementRef; @ViewChild("nav") nav: ElementRef;
@ViewChild("sidebar_offcanvas") sidebar_offcanvas: ElementRef; @ViewChild("sidebar_offcanvas") sidebar_offcanvas: ElementRef;
public offset: number; public offset: number;

View File

@ -9,6 +9,9 @@
<span class="uk-width-expand uk-text-truncate uk-margin-left hide-on-close">Indicators</span> <span class="uk-width-expand uk-text-truncate uk-margin-left hide-on-close">Indicators</span>
</a> </a>
</div> </div>
<div *ngIf="showLogo" id="sidebar_logo" class="uk-margin-top">
<img [src]="stakeholder | logoUrl">
</div>
<div class="menu_section uk-margin-large-top"> <div class="menu_section uk-margin-large-top">
<ul class="uk-list uk-nav uk-nav-default" transition-group [id]="'topics'" <ul class="uk-list uk-nav uk-nav-default" transition-group [id]="'topics'"
uk-nav="duration: 400"> uk-nav="duration: 400">

View File

@ -39,6 +39,7 @@ export class TopicComponent extends StakeholderBaseComponent implements OnInit,
public offset: number; public offset: number;
public loading: boolean = false; public loading: boolean = false;
public stakeholder: Stakeholder; public stakeholder: Stakeholder;
public showLogo: boolean = false;
public user: User; public user: User;
/** /**
* Stakeholder change event * Stakeholder change event
@ -93,6 +94,9 @@ export class TopicComponent extends StakeholderBaseComponent implements OnInit,
} }
public ngOnInit() { public ngOnInit() {
if(this._route.snapshot.data?.showLogo === true) {
this.showLogo = true;
}
if (typeof document !== "undefined") { if (typeof document !== "undefined") {
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height')); this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height'));
} }

View File

@ -24,12 +24,14 @@ class Entities {
organization = 'Research Institution'; organization = 'Research Institution';
project = 'Project'; project = 'Project';
country = 'National'; country = 'National';
datasource = 'Repository';
stakeholders = 'Dashboards'; stakeholders = 'Dashboards';
funders = 'Funders'; funders = 'Funders';
ris = 'Research Initiatives'; ris = 'Research Initiatives';
organizations = 'Research Institutions'; organizations = 'Research Institutions';
projects = 'Projects'; projects = 'Projects';
datasources = 'Repositories';
} }
export class StakeholderConfiguration { export class StakeholderConfiguration {