From 05f2ca1eb4ddb8e814647a18eba87dda6a2b9f80 Mon Sep 17 00:00:00 2001 From: 4gray Date: Thu, 28 Nov 2024 23:31:25 +0100 Subject: [PATCH] feat(toolbar): add settings and update toolbar buttons Inject MatDialog into ToolbarComponent and implement openSettings method to display the SettingsComponent. Update the toolbar HTML to include a settings button and conditionally render the favorite button based on the playlist ID. Enhance VideoPlayerComponent to react to settings changes by integrating SettingsStore. --- .../toolbar/toolbar.component.html | 34 ++++++++++++------- .../video-player/toolbar/toolbar.component.ts | 14 +++++++- .../video-player/video-player.component.ts | 13 ++++++- 3 files changed, 46 insertions(+), 15 deletions(-) diff --git a/src/app/player/components/video-player/toolbar/toolbar.component.html b/src/app/player/components/video-player/toolbar/toolbar.component.html index 4ba9644bf..a2e1933e1 100644 --- a/src/app/player/components/video-player/toolbar/toolbar.component.html +++ b/src/app/player/components/video-player/toolbar/toolbar.component.html @@ -7,22 +7,30 @@ > menu - + + {{ + (favorites$ | async).includes(activeChannel?.id) + ? 'star' + : 'star_outline' + }} + + } {{ activeChannel?.name }}
+ @let isEpgAvailable = isEpgAvailable$ | async; @if (isEpgAvailable) {