1
0
Fork 0

Fix cancel upload

This commit is contained in:
Chocobozzz 2020-04-14 09:54:22 +02:00
parent 8e4aff44b0
commit e713698f3d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View 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'))
}
}