fix(ui): check portal statuses when menu opens

This commit is contained in:
4gray committed 2026-01-12 00:43:21 +01:00
1 parent 33d8036ecc
commit 51ce39e2b4
1 file changed
+2 -7
@@ -96,12 +96,6 @@ export class PlaylistSwitcherComponent {
.subscribe((event: NavigationEnd) => {
this.updateActivePlaylistFromRoute(event.urlAfterRedirects);
});
// Check portal status for Xtream playlists when playlists load
effect(() => {
const allPlaylists = this.playlists();
this.checkPortalStatuses(allPlaylists);
});
}
private updateActivePlaylistFromRoute(url: string) {
@@ -137,6 +131,7 @@ export class PlaylistSwitcherComponent {
onMenuOpened() {
this.isMenuOpen.set(true);
this.checkPortalStatuses(this.playlists());
}
onMenuClosed() {
@@ -186,4 +181,4 @@ export class PlaylistSwitcherComponent {
isSelected(playlist: PlaylistMeta): boolean {
return this.activePlaylistId() === playlist._id;
}
}
}