From 44124980c55d5a5ec7dfb8e71bf14d10f0fe975d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Apr 2016 20:58:07 +0200 Subject: Add typescript (and angular2) linter --- client/angular/videos/components/add/videos-add.component.ts | 5 +---- client/angular/videos/components/list/videos-list.component.ts | 4 ++-- client/angular/videos/components/watch/videos-watch.component.ts | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'client/angular/videos') 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 @@ -import { Component, ElementRef, Inject, OnInit } from 'angular2/core'; +import { Component, ElementRef, OnInit } from 'angular2/core'; import { Router } from 'angular2/router'; -import { NgForm } from 'angular2/common'; - -import { Video } from '../../models/video'; // TODO: import it with systemjs declare 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 { if (this.search !== null) { observable = this._videosService.searchVideos(this.search); } else { - observable = this._videosService.getVideos() + observable = this._videosService.getVideos(); } observable.subscribe( @@ -46,7 +46,7 @@ export class VideosListComponent implements OnInit { this._videosService.removeVideo(id).subscribe( status => this.getVideos(), error => alert(error) - ) + ); } } 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 { alert('Cannot append the file.'); console.error(err); } - }) - }) + }); + }); } routerCanDeactivate(next: ComponentInstruction, prev: ComponentInstruction) : any { -- cgit v1.2.3