mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: fix navigation to stalker portal playlist
This commit is contained in:
1 parent
40f781cbb8
commit
ff90a66c32
2 files changed
+4
No files matched your search
@@ -169,6 +169,8 @@ export class RecentPlaylistsComponent implements OnDestroy {
|
||||
getPlaylist(playlistMeta: PlaylistMeta): void {
|
||||
if (playlistMeta.serverUrl) {
|
||||
this.router.navigate(['xtreams', playlistMeta._id]);
|
||||
} else if (playlistMeta.macAddress) {
|
||||
this.router.navigate(['portals', playlistMeta._id]);
|
||||
} else {
|
||||
this.router.navigate(['playlists', playlistMeta._id]);
|
||||
this.playlistClicked.emit(playlistMeta._id);
|
||||
|
||||
@@ -169,6 +169,8 @@ export class PlaylistEffects {
|
||||
tap((playlist) => {
|
||||
if (playlist.serverUrl) {
|
||||
this.router.navigate(['/xtreams/', playlist._id]);
|
||||
} else if (playlist.macAddress) {
|
||||
this.router.navigate(['portals', playlist._id]);
|
||||
} else {
|
||||
this.router.navigate(['/playlists/', playlist._id]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user