diff options
Diffstat (limited to 'client/src/app/videos/+video-watch')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.html | 2 | ||||
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 5 |
2 files changed, 5 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 6e502aae2..4b594e7ed 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html | |||
@@ -29,7 +29,7 @@ | |||
29 | <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div> | 29 | <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div> |
30 | </div> | 30 | </div> |
31 | 31 | ||
32 | <!-- Video informations --> | 32 | <!-- Video information --> |
33 | <div *ngIf="video !== null" id="video-info"> | 33 | <div *ngIf="video !== null" id="video-info"> |
34 | <div class="row video-name-views"> | 34 | <div class="row video-name-views"> |
35 | <div class="col-xs-8 col-md-8 video-name"> | 35 | <div class="col-xs-8 col-md-8 video-name"> |
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 2e1adb043..199666bdc 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -218,7 +218,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
218 | 218 | ||
219 | let observable | 219 | let observable |
220 | if (this.video.isVideoNSFWForUser(this.authService.getUser())) { | 220 | if (this.video.isVideoNSFWForUser(this.authService.getUser())) { |
221 | observable = this.confirmService.confirm('This video is not safe for work. Are you sure you want to watch it?', 'NSFW') | 221 | observable = this.confirmService.confirm( |
222 | 'This video contains mature or explicit content. Are you sure you want to watch it?', | ||
223 | 'Mature or explicit content' | ||
224 | ) | ||
222 | } else { | 225 | } else { |
223 | observable = Observable.of(true) | 226 | observable = Observable.of(true) |
224 | } | 227 | } |