X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideo-thumbnail.component.ts;h=6f9292d52fd00355dc4783d6580415e58e9bc372;hb=ac0868bcc0259d4ff14265d9ae403e10869a13aa;hp=0f605e425d849b7dd82f6fd4d96c4f618ab727c4;hpb=29128b2f5ce00093ad81b4b72daae0e3444fd5a8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/video/video-thumbnail.component.ts b/client/src/app/shared/video/video-thumbnail.component.ts index 0f605e425..6f9292d52 100644 --- a/client/src/app/shared/video/video-thumbnail.component.ts +++ b/client/src/app/shared/video/video-thumbnail.component.ts @@ -3,12 +3,7 @@ import { Video } from './video.model' import { ScreenService } from '@app/shared/misc/screen.service' import { AuthService, ThemeService } from '@app/core' import { VideoPlaylistService } from '../video-playlist/video-playlist.service' -import { VideoPlaylistType } from '@shared/models' -import { forkJoin } from 'rxjs' -import { VideoPlaylistElement } from '@app/shared/video-playlist/video-playlist-element.model' -import { VideoPlaylist } from '../video-playlist/video-playlist.model' import { VideoPlaylistElementCreate } from '../../../../../shared' -import { VideoExistInPlaylist } from '@shared/models/videos/playlist/video-exist-in-playlist.model' @Component({ selector: 'my-video-thumbnail', @@ -36,6 +31,7 @@ export class VideoThumbnailComponent { load () { if (this.addedToWatchLater !== undefined) return + if (!this.isUserLoggedIn()) return this.videoPlaylistService.doesVideoExistInPlaylist(this.video.id) .subscribe(