refactor: fix navigation to stalker portal playlist

This commit is contained in:
4gray committed 2023-08-09 22:57:15 +02:00
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);
+2
View File
@@ -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]);
}