Fix cancel upload
[oweals/peertube.git] / client / src / app / videos / +video-edit / video-add-components / video-upload.component.ts
index 8023459453c17328d8bae12875dbca6479b18ef3..9ce3fbc6d1392ef29ae95900be146f049ef5e016 100644 (file)
@@ -127,9 +127,13 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
   cancelUpload () {
     if (this.videoUploadObservable !== null) {
       this.videoUploadObservable.unsubscribe()
+
       this.isUploadingVideo = false
       this.videoUploadPercents = 0
       this.videoUploadObservable = null
+
+      this.firstStepError.emit()
+
       this.notifier.info(this.i18n('Upload cancelled'))
     }
   }