From de779034cdfc26282b614f2e825b34cc1f1bbb2c Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 10 Apr 2021 16:48:13 +0200 Subject: add link to open video on origin instance closes #3624 --- client/src/app/+videos/+video-watch/video-watch.component.html | 4 ++-- client/src/app/+videos/+video-watch/video-watch.component.ts | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/app/+videos/+video-watch/video-watch.component.html b/client/src/app/+videos/+video-watch/video-watch.component.html index c1ba0a755..6ede109fd 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.html +++ b/client/src/app/+videos/+video-watch/video-watch.component.html @@ -232,8 +232,8 @@
- Origin instance - {{ video.originInstanceHost }} + Origin + {{ video.originInstanceHost }}
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 { return this.authService.isLoggedIn() } + getVideoUrl () { + if (!this.video.url) { + return this.video.originInstanceUrl + VideoDetails.buildClientUrl(this.video.uuid) + } + return this.video.url + } + getVideoTags () { if (!this.video || Array.isArray(this.video.tags) === false) return [] -- cgit v1.2.3