@@ -27,13 +27,13 @@
[class.active]="show.presentationSongId === song.id"
class="title song-part"
>
-
Hintergrund
+ (ngModelChange)="onBackground($event, show.id)">
kein Hintergrund
Sternenhimmel
Blätter
@@ -72,7 +72,7 @@
_.type === 1)[0].text;
}
- public async onSectionClick(id: string, index: number): Promise {
- if (this.currentShowId != null)
- await this.showService.update$(this.currentShowId, {
- presentationSongId: id,
- presentationSection: index,
- });
+ public async onSectionClick(id: string, index: number, showId: string): Promise {
+ await this.showService.update$(showId, {
+ presentationSongId: id,
+ presentationSection: index,
+ });
}
- public async onZoom(presentationZoom: number): Promise {
- if (this.currentShowId != null) await this.showService.update$(this.currentShowId, {presentationZoom});
+ public async onZoom(presentationZoom: number, showId: string): Promise {
+ await this.showService.update$(showId, {presentationZoom});
}
- public async onBackground(presentationBackground: PresentationBackground): Promise {
- if (this.currentShowId != null) await this.showService.update$(this.currentShowId, {presentationBackground});
+ public async onBackground(presentationBackground: PresentationBackground, showId: string): Promise {
+ await this.showService.update$(showId, {presentationBackground});
}
}
diff --git a/src/app/modules/presentation/select/select.component.ts b/src/app/modules/presentation/select/select.component.ts
index c99eed5..e05f97f 100644
--- a/src/app/modules/presentation/select/select.component.ts
+++ b/src/app/modules/presentation/select/select.component.ts
@@ -22,9 +22,10 @@ export class SelectComponent implements OnInit {
public async selectShow(show: Show) {
this.visible = false;
+
await this.globalSettingsService.set({currentShow: show.id});
- await this.showService.update$(show.id, {presentationSongId: 'title'});
- await this.router.navigateByUrl('/presentation/remote');
+ void this.showService.update$(show.id, {presentationSongId: 'title'});
+ void this.router.navigateByUrl('/presentation/remote');
}
public ngOnInit(): void {