aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-04-10 16:48:13 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-12 15:35:31 +0200
commitde779034cdfc26282b614f2e825b34cc1f1bbb2c (patch)
tree6390319209fa286070233350c76cff344db85219 /client/src/app/+videos/+video-watch/video-watch.component.ts
parent8155db669baff9aac5617a7aaf68dd35823ed7c9 (diff)
downloadPeerTube-de779034cdfc26282b614f2e825b34cc1f1bbb2c.tar.gz
PeerTube-de779034cdfc26282b614f2e825b34cc1f1bbb2c.tar.zst
PeerTube-de779034cdfc26282b614f2e825b34cc1f1bbb2c.zip
add link to open video on origin instance
closes #3624
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts
index 0c0eaaa78..366e9bb57 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -295,6 +295,13 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
295 return this.authService.isLoggedIn() 295 return this.authService.isLoggedIn()
296 } 296 }
297 297
298 getVideoUrl () {
299 if (!this.video.url) {
300 return this.video.originInstanceUrl + VideoDetails.buildClientUrl(this.video.uuid)
301 }
302 return this.video.url
303 }
304
298 getVideoTags () { 305 getVideoTags () {
299 if (!this.video || Array.isArray(this.video.tags) === false) return [] 306 if (!this.video || Array.isArray(this.video.tags) === false) return []
300 307