Fixed projector logo
This commit is contained in:
parent
4495985d4c
commit
7792c47656
@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<div id="header" [ngStyle]="headerFooterStyle" *ngIf="projector && projector.show_header_footer">
|
||||
<!-- projector logo -->
|
||||
<img *ngIf="enableLogo && projectorLogo" src="{{ projectorLogo }}" class="projector-logo-main" />
|
||||
<img *ngIf="projector.show_logo && projectorLogo" src="{{ projectorLogo }}" class="projector-logo-main" />
|
||||
|
||||
<div *ngIf="projector.show_title" id="eventdata">
|
||||
<div
|
||||
|
@ -140,7 +140,6 @@ export class ProjectorComponent extends BaseComponent implements OnDestroy {
|
||||
// Some settings for the view from the config.
|
||||
public enableHeaderAndFooter = true;
|
||||
public enableTitle = true;
|
||||
public enableLogo = true;
|
||||
public projectorLogo;
|
||||
public eventName;
|
||||
public eventDescription;
|
||||
@ -166,10 +165,11 @@ export class ProjectorComponent extends BaseComponent implements OnDestroy {
|
||||
) {
|
||||
super(titleService, translate);
|
||||
// projector logo / background-image
|
||||
this.configService.get<boolean>('projector_enable_logo').subscribe(val => (this.enableLogo = val));
|
||||
this.configService.get<{ path?: string }>('logo_projector_main').subscribe(val => {
|
||||
if (val && val.path) {
|
||||
this.projectorLogo = val.path;
|
||||
} else {
|
||||
this.projectorLogo = '';
|
||||
}
|
||||
});
|
||||
this.configService.get<{ path?: string }>('logo_projector_header').subscribe(val => {
|
||||
|
Loading…
Reference in New Issue
Block a user