diff options
Diffstat (limited to 'client/src/app/videos/video-add')
-rw-r--r-- | client/src/app/videos/video-add/video-add.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/videos/video-add/video-add.component.ts b/client/src/app/videos/video-add/video-add.component.ts index 1e700ae48..cd6bb9989 100644 --- a/client/src/app/videos/video-add/video-add.component.ts +++ b/client/src/app/videos/video-add/video-add.component.ts | |||
@@ -3,6 +3,7 @@ import { FormBuilder, FormGroup } from '@angular/forms'; | |||
3 | import { Router } from '@angular/router'; | 3 | import { Router } from '@angular/router'; |
4 | 4 | ||
5 | import { FileUploader } from 'ng2-file-upload/ng2-file-upload'; | 5 | import { FileUploader } from 'ng2-file-upload/ng2-file-upload'; |
6 | import { NotificationsService } from 'angular2-notifications'; | ||
6 | 7 | ||
7 | import { AuthService } from '../../core'; | 8 | import { AuthService } from '../../core'; |
8 | import { FormReactive, VIDEO_NAME, VIDEO_DESCRIPTION, VIDEO_TAGS } from '../../shared'; | 9 | import { FormReactive, VIDEO_NAME, VIDEO_DESCRIPTION, VIDEO_TAGS } from '../../shared'; |
@@ -38,7 +39,8 @@ export class VideoAddComponent extends FormReactive implements OnInit { | |||
38 | private authService: AuthService, | 39 | private authService: AuthService, |
39 | private elementRef: ElementRef, | 40 | private elementRef: ElementRef, |
40 | private formBuilder: FormBuilder, | 41 | private formBuilder: FormBuilder, |
41 | private router: Router | 42 | private router: Router, |
43 | private notificationsService: NotificationsService | ||
42 | ) { | 44 | ) { |
43 | super(); | 45 | super(); |
44 | } | 46 | } |
@@ -151,6 +153,8 @@ export class VideoAddComponent extends FormReactive implements OnInit { | |||
151 | clearInterval(interval); | 153 | clearInterval(interval); |
152 | 154 | ||
153 | console.log('Video uploaded.'); | 155 | console.log('Video uploaded.'); |
156 | this.notificationsService.success('Success', 'Video uploaded.'); | ||
157 | |||
154 | 158 | ||
155 | // Print all the videos once it's finished | 159 | // Print all the videos once it's finished |
156 | this.router.navigate(['/videos/list']); | 160 | this.router.navigate(['/videos/list']); |