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