From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- .../shared/playlist/video-watch-playlist.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts') diff --git a/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts index f0f7966b1..78b3af4a7 100644 --- a/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts +++ b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts @@ -39,7 +39,7 @@ export class VideoWatchPlaylistComponent { private notifier: Notifier, private videoPlaylist: VideoPlaylistService, private localStorageService: LocalStorageService, - private sessionStorageService: SessionStorageService, + private sessionStorage: SessionStorageService, private router: Router ) { // defaults to true @@ -50,7 +50,7 @@ export class VideoWatchPlaylistComponent { this.setAutoPlayNextVideoPlaylistSwitchText() // defaults to false - this.loopPlaylist = this.sessionStorageService.getItem(VideoWatchPlaylistComponent.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO_PLAYLIST) === 'true' + this.loopPlaylist = this.sessionStorage.getItem(VideoWatchPlaylistComponent.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO_PLAYLIST) === 'true' this.setLoopPlaylistSwitchText() } @@ -145,7 +145,7 @@ export class VideoWatchPlaylistComponent { const start = previous.startTimestamp const stop = previous.stopTimestamp - this.router.navigate([],{ queryParams: { playlistPosition: previous.position, start, stop } }) + this.router.navigate([], { queryParams: { playlistPosition: previous.position, start, stop } }) } findPlaylistVideo (position: number, type: 'previous' | 'next'): VideoPlaylistElement { @@ -163,7 +163,7 @@ export class VideoWatchPlaylistComponent { } const found = this.playlistElements.find(e => e.position === position) - if (found && found.video) return found + if (found?.video) return found const newPosition = type === 'previous' ? position - 1 @@ -178,7 +178,7 @@ export class VideoWatchPlaylistComponent { const start = next.startTimestamp const stop = next.stopTimestamp - this.router.navigate([],{ queryParams: { playlistPosition: next.position, start, stop } }) + this.router.navigate([], { queryParams: { playlistPosition: next.position, start, stop } }) } switchAutoPlayNextVideoPlaylist () { -- cgit v1.2.3