[angular-irish-16 | DONE]: Add datasource in Entities. Add logo in sidebar.
This commit is contained in:
parent
752baad8de
commit
79d49c80e3
|
@ -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">
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue