aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
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
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')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.html4
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts7
2 files changed, 9 insertions, 2 deletions
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 @@
232 </div> 232 </div>
233 233
234 <div *ngIf="video.isLocal === false" class="video-attribute"> 234 <div *ngIf="video.isLocal === false" class="video-attribute">
235 <span i18n class="video-attribute-label">Origin instance</span> 235 <span i18n class="video-attribute-label">Origin</span>
236 <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="video.originInstanceUrl">{{ video.originInstanceHost }}</a> 236 <a class="video-attribute-value" target="_blank" rel="noopener noreferrer" [href]="getVideoUrl()">{{ video.originInstanceHost }}</a>
237 </div> 237 </div>
238 238
239 <div *ngIf="!!video.originallyPublishedAt" class="video-attribute"> 239 <div *ngIf="!!video.originallyPublishedAt" class="video-attribute">
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