diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:25:52 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 17:25:52 +0200 |
commit | ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd (patch) | |
tree | 1765f48824be934e0be07e8a987a9513c58ba3da /client/app/videos/video-list/video-miniature.component.ts | |
parent | 41a2aee38cf812510010da09de9bae53590ec119 (diff) | |
download | PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.tar.gz PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.tar.zst PeerTube-ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd.zip |
Do not prefix private attributes
Diffstat (limited to 'client/app/videos/video-list/video-miniature.component.ts')
-rw-r--r-- | client/app/videos/video-list/video-miniature.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/app/videos/video-list/video-miniature.component.ts b/client/app/videos/video-list/video-miniature.component.ts index 817636768..73416607a 100644 --- a/client/app/videos/video-list/video-miniature.component.ts +++ b/client/app/videos/video-list/video-miniature.component.ts | |||
@@ -19,9 +19,9 @@ export class VideoMiniatureComponent { | |||
19 | @Input() video: Video; | 19 | @Input() video: Video; |
20 | @Input() user: User; | 20 | @Input() user: User; |
21 | 21 | ||
22 | hovering: boolean = false; | 22 | hovering = false; |
23 | 23 | ||
24 | constructor(private _videoService: VideoService) {} | 24 | constructor(private videoService: VideoService) {} |
25 | 25 | ||
26 | onHover() { | 26 | onHover() { |
27 | this.hovering = true; | 27 | this.hovering = true; |
@@ -31,13 +31,13 @@ export class VideoMiniatureComponent { | |||
31 | this.hovering = false; | 31 | this.hovering = false; |
32 | } | 32 | } |
33 | 33 | ||
34 | displayRemoveIcon(): boolean { | 34 | displayRemoveIcon() { |
35 | return this.hovering && this.video.isRemovableBy(this.user); | 35 | return this.hovering && this.video.isRemovableBy(this.user); |
36 | } | 36 | } |
37 | 37 | ||
38 | removeVideo(id: string) { | 38 | removeVideo(id: string) { |
39 | if (confirm('Do you really want to remove this video?')) { | 39 | if (confirm('Do you really want to remove this video?')) { |
40 | this._videoService.removeVideo(id).subscribe( | 40 | this.videoService.removeVideo(id).subscribe( |
41 | status => this.removed.emit(true), | 41 | status => this.removed.emit(true), |
42 | error => alert(error) | 42 | error => alert(error) |
43 | ); | 43 | ); |