mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(ui): check portal statuses when menu opens
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user