aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-edit/video-add.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/video-edit/video-add.component.ts')
-rw-r--r--client/src/app/videos/video-edit/video-add.component.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/videos/video-edit/video-add.component.ts b/client/src/app/videos/video-edit/video-add.component.ts
index 537ef9bc3..21311b184 100644
--- a/client/src/app/videos/video-edit/video-add.component.ts
+++ b/client/src/app/videos/video-edit/video-add.component.ts
@@ -151,11 +151,15 @@ export class VideoAddComponent extends FormReactive implements OnInit {
151 this.notificationsService.success('Success', 'Video uploaded.') 151 this.notificationsService.success('Success', 'Video uploaded.')
152 152
153 // Display all the videos once it's finished 153 // Display all the videos once it's finished
154 this.router.navigate([ '/videos/list ']) 154 this.router.navigate([ '/videos/list' ])
155 } 155 }
156 }, 156 },
157 157
158 err => this.error = err.message 158 err => {
159 // Reset progress
160 this.progressPercent = 0
161 this.error = err.message
162 }
159 ) 163 )
160 } 164 }
161} 165}