aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/videos/components
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-08 20:58:07 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-08 21:03:47 +0200
commit44124980c55d5a5ec7dfb8e71bf14d10f0fe975d (patch)
tree795191ff37d862a4bcf9cbc57cdb60b909b038d1 /client/angular/videos/components
parent0dde91ff15ec3cb73d39da50b388e5e525160cb4 (diff)
downloadPeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.tar.gz
PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.tar.zst
PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.zip
Add typescript (and angular2) linter
Diffstat (limited to 'client/angular/videos/components')
-rw-r--r--client/angular/videos/components/add/videos-add.component.ts5
-rw-r--r--client/angular/videos/components/list/videos-list.component.ts4
-rw-r--r--client/angular/videos/components/watch/videos-watch.component.ts4
3 files changed, 5 insertions, 8 deletions
diff --git a/client/angular/videos/components/add/videos-add.component.ts b/client/angular/videos/components/add/videos-add.component.ts
index 0004cfa20..7ae11db22 100644
--- a/client/angular/videos/components/add/videos-add.component.ts
+++ b/client/angular/videos/components/add/videos-add.component.ts
@@ -1,8 +1,5 @@
1import { Component, ElementRef, Inject, OnInit } from 'angular2/core'; 1import { Component, ElementRef, OnInit } from 'angular2/core';
2import { Router } from 'angular2/router'; 2import { Router } from 'angular2/router';
3import { NgForm } from 'angular2/common';
4
5import { Video } from '../../models/video';
6 3
7// TODO: import it with systemjs 4// TODO: import it with systemjs
8declare var jQuery:any; 5declare var jQuery:any;
diff --git a/client/angular/videos/components/list/videos-list.component.ts b/client/angular/videos/components/list/videos-list.component.ts
index eb23ed1ff..ae58f4d7e 100644
--- a/client/angular/videos/components/list/videos-list.component.ts
+++ b/client/angular/videos/components/list/videos-list.component.ts
@@ -33,7 +33,7 @@ export class VideosListComponent implements OnInit {
33 if (this.search !== null) { 33 if (this.search !== null) {
34 observable = this._videosService.searchVideos(this.search); 34 observable = this._videosService.searchVideos(this.search);
35 } else { 35 } else {
36 observable = this._videosService.getVideos() 36 observable = this._videosService.getVideos();
37 } 37 }
38 38
39 observable.subscribe( 39 observable.subscribe(
@@ -46,7 +46,7 @@ export class VideosListComponent implements OnInit {
46 this._videosService.removeVideo(id).subscribe( 46 this._videosService.removeVideo(id).subscribe(
47 status => this.getVideos(), 47 status => this.getVideos(),
48 error => alert(error) 48 error => alert(error)
49 ) 49 );
50 } 50 }
51 51
52} 52}
diff --git a/client/angular/videos/components/watch/videos-watch.component.ts b/client/angular/videos/components/watch/videos-watch.component.ts
index 1a17e2b1a..28786ebb9 100644
--- a/client/angular/videos/components/watch/videos-watch.component.ts
+++ b/client/angular/videos/components/watch/videos-watch.component.ts
@@ -47,8 +47,8 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
47 alert('Cannot append the file.'); 47 alert('Cannot append the file.');
48 console.error(err); 48 console.error(err);
49 } 49 }
50 }) 50 });
51 }) 51 });
52 } 52 }
53 53
54 routerCanDeactivate(next: ComponentInstruction, prev: ComponentInstruction) : any { 54 routerCanDeactivate(next: ComponentInstruction, prev: ComponentInstruction) : any {