diff options
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 12 |
1 files changed, 6 insertions, 6 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 5750c5fca..7951e3927 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -49,8 +49,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
49 | shortVideoDescription: string | 49 | shortVideoDescription: string |
50 | videoHTMLDescription = '' | 50 | videoHTMLDescription = '' |
51 | likesBarTooltipText = '' | 51 | likesBarTooltipText = '' |
52 | hasAlreadyAcceptedPrivacyConcern = false | ||
52 | 53 | ||
53 | private hasAlreadyAcceptedPrivacyConcern = false | ||
54 | private otherVideos: Video[] = [] | 54 | private otherVideos: Video[] = [] |
55 | private paramsSub: Subscription | 55 | private paramsSub: Subscription |
56 | 56 | ||
@@ -260,6 +260,11 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
260 | ) | 260 | ) |
261 | } | 261 | } |
262 | 262 | ||
263 | acceptedPrivacyConcern () { | ||
264 | localStorage.setItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY, 'true') | ||
265 | this.hasAlreadyAcceptedPrivacyConcern = true | ||
266 | } | ||
267 | |||
263 | private updateVideoDescription (description: string) { | 268 | private updateVideoDescription (description: string) { |
264 | this.video.description = description | 269 | this.video.description = description |
265 | this.setVideoDescriptionHTML() | 270 | this.setVideoDescriptionHTML() |
@@ -470,9 +475,4 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
470 | // Be sure the autoPlay is set to false | 475 | // Be sure the autoPlay is set to false |
471 | return this.user.autoPlayVideo !== false | 476 | return this.user.autoPlayVideo !== false |
472 | } | 477 | } |
473 | |||
474 | private acceptedPrivacyConcern () { | ||
475 | localStorage.setItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY, 'true') | ||
476 | this.hasAlreadyAcceptedPrivacyConcern = true | ||
477 | } | ||
478 | } | 478 | } |