diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-20 11:37:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-07-20 11:37:06 +0200 |
commit | 0bdad52fbbad81e7654adc495088da56a00437df (patch) | |
tree | 206f4693cc7fa62531fdf6830d6bf9fbbdc07cc1 /client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts | |
parent | 69a019968e225f1eac4a3df3041f141d0047d7f0 (diff) | |
download | PeerTube-0bdad52fbbad81e7654adc495088da56a00437df.tar.gz PeerTube-0bdad52fbbad81e7654adc495088da56a00437df.tar.zst PeerTube-0bdad52fbbad81e7654adc495088da56a00437df.zip |
Fix issues with external links in search page
Diffstat (limited to 'client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts')
-rw-r--r-- | client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts index 3ff45d9b7..812c7a508 100644 --- a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts +++ b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts | |||
@@ -11,8 +11,11 @@ import { Video } from '../shared-main' | |||
11 | export class VideoThumbnailComponent { | 11 | export class VideoThumbnailComponent { |
12 | @Input() video: Video | 12 | @Input() video: Video |
13 | @Input() nsfw = false | 13 | @Input() nsfw = false |
14 | @Input() routerLink: any[] | 14 | |
15 | @Input() videoRouterLink: any[] | ||
15 | @Input() queryParams: { [ p: string ]: any } | 16 | @Input() queryParams: { [ p: string ]: any } |
17 | @Input() videoHref: string | ||
18 | @Input() videoTarget: string | ||
16 | 19 | ||
17 | @Input() displayWatchLaterPlaylist: boolean | 20 | @Input() displayWatchLaterPlaylist: boolean |
18 | @Input() inWatchLaterPlaylist: boolean | 21 | @Input() inWatchLaterPlaylist: boolean |
@@ -49,7 +52,7 @@ export class VideoThumbnailComponent { | |||
49 | } | 52 | } |
50 | 53 | ||
51 | getVideoRouterLink () { | 54 | getVideoRouterLink () { |
52 | if (this.routerLink) return this.routerLink | 55 | if (this.videoRouterLink) return this.videoRouterLink |
53 | 56 | ||
54 | return [ '/videos/watch', this.video.uuid ] | 57 | return [ '/videos/watch', this.video.uuid ] |
55 | } | 58 | } |