fix(stalker): address radio review feedback

Entire-Checkpoint: f957cd9849e0
This commit is contained in:
4gray committed 2026-05-09 13:08:41 +02:00
1 parent ab905af285
commit 0d93301520
2 files changed
+6 -5

No files matched your search

@@ -11,11 +11,12 @@ import { NavigationEnd, Router } from '@angular/router';
import { filter, firstValueFrom } from 'rxjs';
import { PlaylistContextFacade } from '@iptvnator/playlist/shared/util';
import { PortalRailSection } from '@iptvnator/portal/shared/util';
import { StalkerStore } from '@iptvnator/portal/stalker/data-access';
import {
StalkerContentType,
StalkerStore,
} from '@iptvnator/portal/stalker/data-access';
import { PlaylistsService } from 'services';
type StalkerContentType = 'vod' | 'series' | 'itv' | 'radio';
@Injectable()
export class StalkerWorkspaceRouteSession {
private readonly destroyRef = inject(DestroyRef);
@@ -241,12 +241,12 @@ export class AudioPlayerComponent {
}
switchChannel(direction: 'next' | 'previous') {
this.channelSwitchRequested.emit(direction);
if (this.dispatchAdjacentChannelAction()) {
this.store.dispatch(
ChannelActions.setAdjacentChannelAsActive({ direction })
);
} else {
this.channelSwitchRequested.emit(direction);
}
}
}