]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/video-edit/video-add.component.ts
Add info when server is processing a video at upload
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-edit / video-add.component.ts
index 537ef9bc3ec551aa79fb022ae73513a00ac9c795..21311b184067add1af455b3bc7228b5f346e240d 100644 (file)
@@ -151,11 +151,15 @@ export class VideoAddComponent extends FormReactive implements OnInit {
           this.notificationsService.success('Success', 'Video uploaded.')
 
           // Display all the videos once it's finished
-          this.router.navigate([ '/videos/list '])
+          this.router.navigate([ '/videos/list])
         }
       },
 
-      err => this.error = err.message
+      err => {
+        // Reset progress
+        this.progressPercent = 0
+        this.error = err.message
+      }
     )
   }
 }