diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-01-02 15:45:27 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-01-02 16:26:18 +0100 |
commit | 3fbba1d28a80b9e8bd97b422280a7465c5f7c89f (patch) | |
tree | c1f334ee1a4f6086947120ff7312d105783153c6 /client/src/app/shared/video/video-thumbnail.component.ts | |
parent | 29128b2f5ce00093ad81b4b72daae0e3444fd5a8 (diff) | |
download | PeerTube-3fbba1d28a80b9e8bd97b422280a7465c5f7c89f.tar.gz PeerTube-3fbba1d28a80b9e8bd97b422280a7465c5f7c89f.tar.zst PeerTube-3fbba1d28a80b9e8bd97b422280a7465c5f7c89f.zip |
Display all miniature actions on hover and focus
Diffstat (limited to 'client/src/app/shared/video/video-thumbnail.component.ts')
-rw-r--r-- | client/src/app/shared/video/video-thumbnail.component.ts | 6 |
1 files changed, 1 insertions, 5 deletions
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' | |||
3 | import { ScreenService } from '@app/shared/misc/screen.service' | 3 | import { ScreenService } from '@app/shared/misc/screen.service' |
4 | import { AuthService, ThemeService } from '@app/core' | 4 | import { AuthService, ThemeService } from '@app/core' |
5 | import { VideoPlaylistService } from '../video-playlist/video-playlist.service' | 5 | import { VideoPlaylistService } from '../video-playlist/video-playlist.service' |
6 | import { VideoPlaylistType } from '@shared/models' | ||
7 | import { forkJoin } from 'rxjs' | ||
8 | import { VideoPlaylistElement } from '@app/shared/video-playlist/video-playlist-element.model' | ||
9 | import { VideoPlaylist } from '../video-playlist/video-playlist.model' | ||
10 | import { VideoPlaylistElementCreate } from '../../../../../shared' | 6 | import { VideoPlaylistElementCreate } from '../../../../../shared' |
11 | import { VideoExistInPlaylist } from '@shared/models/videos/playlist/video-exist-in-playlist.model' | ||
12 | 7 | ||
13 | @Component({ | 8 | @Component({ |
14 | selector: 'my-video-thumbnail', | 9 | selector: 'my-video-thumbnail', |
@@ -36,6 +31,7 @@ export class VideoThumbnailComponent { | |||
36 | 31 | ||
37 | load () { | 32 | load () { |
38 | if (this.addedToWatchLater !== undefined) return | 33 | if (this.addedToWatchLater !== undefined) return |
34 | if (!this.isUserLoggedIn()) return | ||
39 | 35 | ||
40 | this.videoPlaylistService.doesVideoExistInPlaylist(this.video.id) | 36 | this.videoPlaylistService.doesVideoExistInPlaylist(this.video.id) |
41 | .subscribe( | 37 | .subscribe( |