enlargable show tiles
This commit is contained in:
1 parent
3b61a131c1
commit
86fbfa56bf
3 files changed
+44
-3
No files matched your search
@@ -24,6 +24,14 @@ export class ScheduleComponent {
|
||||
private showService = inject(ShowService);
|
||||
readonly config = inject(StationConfigService).config;
|
||||
|
||||
/** ID of the currently expanded show card — null means none. */
|
||||
expandedShowId: number | null = null;
|
||||
|
||||
/** Toggle expansion: clicking the active card collapses it; clicking another expands it. */
|
||||
toggleShow(showId: number): void {
|
||||
this.expandedShowId = this.expandedShowId === showId ? null : showId;
|
||||
}
|
||||
|
||||
/** Async pipe drives the template — guarantees change detection on every emission. */
|
||||
readonly schedule$: Observable<ScheduleState> =
|
||||
this.showService.getShows().pipe(
|
||||
|
||||
Reference in new issue
Block a user