update angular

This commit is contained in:
2025-01-02 15:01:59 +01:00
parent 73d3ecfd42
commit 802c309679
199 changed files with 13745 additions and 11691 deletions

View File

@@ -17,6 +17,7 @@ import {ShowSongService} from '../../shows/services/show-song.service';
selector: 'app-song',
templateUrl: './song.component.html',
styleUrls: ['./song.component.less'],
standalone: false,
})
export class SongComponent implements OnInit {
public song$: Observable<Song | null> | null = null;
@@ -34,7 +35,7 @@ export class SongComponent implements OnInit {
private userService: UserService,
private router: Router,
private showService: ShowService,
private showSongService: ShowSongService
private showSongService: ShowSongService,
) {
this.user$ = userService.user$;
}
@@ -43,13 +44,13 @@ export class SongComponent implements OnInit {
this.song$ = this.activatedRoute.params.pipe(
map(param => param as {songId: string}),
map(param => param.songId),
switchMap(songId => this.songService.read$(songId))
switchMap(songId => this.songService.read$(songId)),
);
this.files$ = this.activatedRoute.params.pipe(
map(param => param as {songId: string}),
map(param => param.songId),
switchMap(songId => this.fileService.read$(songId))
switchMap(songId => this.fileService.read$(songId)),
);
}
@@ -77,6 +78,6 @@ export class SongComponent implements OnInit {
map(([user, song]) => {
return user.songUsage[song.id];
}),
distinctUntilChanged()
distinctUntilChanged(),
);
}