projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'release/1.4.0' into develop
[oweals/peertube.git]
/
client
/
src
/
app
/
shared
/
video
/
video-thumbnail.component.ts
diff --git
a/client/src/app/shared/video/video-thumbnail.component.ts
b/client/src/app/shared/video/video-thumbnail.component.ts
index ca43700c7c7d620eba0ce29fe3034564569eb714..fe65ade9442a1b5da0beedaab65b269fa699d0fd 100644
(file)
--- a/
client/src/app/shared/video/video-thumbnail.component.ts
+++ b/
client/src/app/shared/video/video-thumbnail.component.ts
@@
-10,8
+10,11
@@
import { ScreenService } from '@app/shared/misc/screen.service'
export class VideoThumbnailComponent {
@Input() video: Video
@Input() nsfw = false
export class VideoThumbnailComponent {
@Input() video: Video
@Input() nsfw = false
+ @Input() routerLink: any[]
+ @Input() queryParams: any[]
- constructor (private screenService: ScreenService) {}
+ constructor (private screenService: ScreenService) {
+ }
getImageUrl () {
if (!this.video) return ''
getImageUrl () {
if (!this.video) return ''
@@
-30,4
+33,10
@@
export class VideoThumbnailComponent {
return (currentTime / this.video.duration) * 100
}
return (currentTime / this.video.duration) * 100
}
+
+ getVideoRouterLink () {
+ if (this.routerLink) return this.routerLink
+
+ return [ '/videos/watch', this.video.uuid ]
+ }
}
}