diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-31 22:39:36 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-31 22:39:36 +0200 |
commit | d3ef341abe8fb890a085189f5e4d0a5bd38d0172 (patch) | |
tree | 333c058390607cac1aec22169a2feb7d9cee3a00 /client/app/videos/video-add/video-add.component.ts | |
parent | 092fbf58cca91d1a2ce0c84f47ef7856c9e56cdb (diff) | |
download | PeerTube-d3ef341abe8fb890a085189f5e4d0a5bd38d0172.tar.gz PeerTube-d3ef341abe8fb890a085189f5e4d0a5bd38d0172.tar.zst PeerTube-d3ef341abe8fb890a085189f5e4d0a5bd38d0172.zip |
Move webtorrent inside a service
Diffstat (limited to 'client/app/videos/video-add/video-add.component.ts')
-rw-r--r-- | client/app/videos/video-add/video-add.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/app/videos/video-add/video-add.component.ts b/client/app/videos/video-add/video-add.component.ts index eb10aedeb..619a4f4d8 100644 --- a/client/app/videos/video-add/video-add.component.ts +++ b/client/app/videos/video-add/video-add.component.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | /// <reference path="../../../typings/globals/jquery/index.d.ts" /> | ||
2 | /// <reference path="../../../typings/globals/jquery.fileupload/index.d.ts" /> | ||
3 | |||
1 | import { Component, ElementRef, OnInit } from '@angular/core'; | 4 | import { Component, ElementRef, OnInit } from '@angular/core'; |
2 | import { Router } from '@angular/router-deprecated'; | 5 | import { Router } from '@angular/router-deprecated'; |
3 | 6 | ||
@@ -6,9 +9,6 @@ import { PROGRESSBAR_DIRECTIVES } from 'ng2-bootstrap/components/progressbar'; | |||
6 | 9 | ||
7 | import { AuthService, User } from '../../users/index'; | 10 | import { AuthService, User } from '../../users/index'; |
8 | 11 | ||
9 | // TODO: import it with systemjs | ||
10 | declare var jQuery: any; | ||
11 | |||
12 | @Component({ | 12 | @Component({ |
13 | selector: 'my-videos-add', | 13 | selector: 'my-videos-add', |
14 | styleUrls: [ 'client/app/videos/video-add/video-add.component.css' ], | 14 | styleUrls: [ 'client/app/videos/video-add/video-add.component.css' ], |
@@ -37,7 +37,7 @@ export class VideoAddComponent implements OnInit { | |||
37 | dataType: 'json', | 37 | dataType: 'json', |
38 | singleFileUploads: true, | 38 | singleFileUploads: true, |
39 | multipart: true, | 39 | multipart: true, |
40 | autoupload: false, | 40 | autoUpload: false, |
41 | 41 | ||
42 | add: (e, data) => { | 42 | add: (e, data) => { |
43 | this.form = data; | 43 | this.form = data; |