diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-19 10:38:24 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-19 10:48:44 +0100 |
commit | 1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5 (patch) | |
tree | 00c27b7e6a81dfc04a8cc86ba782df1e9d0c1db8 /client/src/app/videos/+video-watch/video-watch.component.ts | |
parent | 3bb6c52645af84832212c99fdec04143e4230180 (diff) | |
download | PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.tar.gz PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.tar.zst PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.zip |
Improve comment highlighting
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.ts | 5 |
1 files changed, 4 insertions, 1 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 7c97f0964..553eed341 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -83,7 +83,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
83 | this.player.pause() | 83 | this.player.pause() |
84 | } | 84 | } |
85 | 85 | ||
86 | let uuid = routeParams['uuid'] | 86 | const uuid = routeParams['uuid'] |
87 | // Video did not changed | ||
88 | if (this.video && this.video.uuid === uuid) return | ||
89 | |||
87 | this.videoService.getVideo(uuid).subscribe( | 90 | this.videoService.getVideo(uuid).subscribe( |
88 | video => this.onVideoFetched(video), | 91 | video => this.onVideoFetched(video), |
89 | 92 | ||