diff options
Diffstat (limited to 'client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts index e4972ec10..e019fdd26 100644 --- a/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts | |||
@@ -16,7 +16,7 @@ import { | |||
16 | import { VIDEO_PLAYLIST_DISPLAY_NAME_VALIDATOR } from '../form-validators/video-playlist-validators' | 16 | import { VIDEO_PLAYLIST_DISPLAY_NAME_VALIDATOR } from '../form-validators/video-playlist-validators' |
17 | import { CachedPlaylist, VideoPlaylistService } from './video-playlist.service' | 17 | import { CachedPlaylist, VideoPlaylistService } from './video-playlist.service' |
18 | 18 | ||
19 | const logger = debug('peertube:playlists:VideoAddToPlaylistComponent') | 19 | const debugLogger = debug('peertube:playlists:VideoAddToPlaylistComponent') |
20 | 20 | ||
21 | type PlaylistElement = { | 21 | type PlaylistElement = { |
22 | enabled: boolean | 22 | enabled: boolean |
@@ -110,7 +110,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, | |||
110 | } | 110 | } |
111 | 111 | ||
112 | reload () { | 112 | reload () { |
113 | logger('Reloading component') | 113 | debugLogger('Reloading component') |
114 | 114 | ||
115 | this.videoPlaylists = [] | 115 | this.videoPlaylists = [] |
116 | this.videoPlaylistSearch = undefined | 116 | this.videoPlaylistSearch = undefined |
@@ -121,7 +121,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, | |||
121 | } | 121 | } |
122 | 122 | ||
123 | load () { | 123 | load () { |
124 | logger('Loading component') | 124 | debugLogger('Loading component') |
125 | 125 | ||
126 | this.listenToVideoPlaylistChange() | 126 | this.listenToVideoPlaylistChange() |
127 | 127 | ||
@@ -331,7 +331,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, | |||
331 | } | 331 | } |
332 | 332 | ||
333 | private rebuildPlaylists (existResult: VideoExistInPlaylist[]) { | 333 | private rebuildPlaylists (existResult: VideoExistInPlaylist[]) { |
334 | logger('Got existing results for %d.', this.video.id, existResult) | 334 | debugLogger('Got existing results for %d.', this.video.id, existResult) |
335 | 335 | ||
336 | const oldPlaylists = this.videoPlaylists | 336 | const oldPlaylists = this.videoPlaylists |
337 | 337 | ||
@@ -359,7 +359,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, | |||
359 | this.videoPlaylists.push(playlistSummary) | 359 | this.videoPlaylists.push(playlistSummary) |
360 | } | 360 | } |
361 | 361 | ||
362 | logger('Rebuilt playlist state for video %d.', this.video.id, this.videoPlaylists) | 362 | debugLogger('Rebuilt playlist state for video %d.', this.video.id, this.videoPlaylists) |
363 | 363 | ||
364 | this.cd.markForCheck() | 364 | this.cd.markForCheck() |
365 | } | 365 | } |