Verified Commit e713698f authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix cancel upload

parent 8e4aff44
......@@ -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'))
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment