Fix cancel upload
This commit is contained in:
parent
8e4aff44b0
commit
e713698f3d
1 changed files with 4 additions and 0 deletions
|
@ -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'))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue