diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-16 14:32:15 +0200 |
commit | df98563e2104b82b119c00a3cd83cd0dc1242d25 (patch) | |
tree | a9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/src/app/videos/video-watch/video-magnet.component.ts | |
parent | 46757b477c1adb5f98060d15998a3852e18902a6 (diff) | |
download | PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.gz PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.zst PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.zip |
Use typescript standard and lint all files
Diffstat (limited to 'client/src/app/videos/video-watch/video-magnet.component.ts')
-rw-r--r-- | client/src/app/videos/video-watch/video-magnet.component.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/client/src/app/videos/video-watch/video-magnet.component.ts b/client/src/app/videos/video-watch/video-magnet.component.ts index 894fa45fc..f9432e92c 100644 --- a/client/src/app/videos/video-watch/video-magnet.component.ts +++ b/client/src/app/videos/video-watch/video-magnet.component.ts | |||
@@ -1,27 +1,27 @@ | |||
1 | import { Component, Input, ViewChild } from '@angular/core'; | 1 | import { Component, Input, ViewChild } from '@angular/core' |
2 | 2 | ||
3 | import { ModalDirective } from 'ngx-bootstrap/modal'; | 3 | import { ModalDirective } from 'ngx-bootstrap/modal' |
4 | 4 | ||
5 | import { Video } from '../shared'; | 5 | import { Video } from '../shared' |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'my-video-magnet', | 8 | selector: 'my-video-magnet', |
9 | templateUrl: './video-magnet.component.html' | 9 | templateUrl: './video-magnet.component.html' |
10 | }) | 10 | }) |
11 | export class VideoMagnetComponent { | 11 | export class VideoMagnetComponent { |
12 | @Input() video: Video = null; | 12 | @Input() video: Video = null |
13 | 13 | ||
14 | @ViewChild('modal') modal: ModalDirective; | 14 | @ViewChild('modal') modal: ModalDirective |
15 | 15 | ||
16 | constructor() { | 16 | constructor () { |
17 | // empty | 17 | // empty |
18 | } | 18 | } |
19 | 19 | ||
20 | show() { | 20 | show () { |
21 | this.modal.show(); | 21 | this.modal.show() |
22 | } | 22 | } |
23 | 23 | ||
24 | hide() { | 24 | hide () { |
25 | this.modal.hide(); | 25 | this.modal.hide() |
26 | } | 26 | } |
27 | } | 27 | } |