Fix cancel upload
This commit is contained in:
parent
8e4aff44b0
commit
e713698f3d
|
@ -127,9 +127,13 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
|
||||||
cancelUpload () {
|
cancelUpload () {
|
||||||
if (this.videoUploadObservable !== null) {
|
if (this.videoUploadObservable !== null) {
|
||||||
this.videoUploadObservable.unsubscribe()
|
this.videoUploadObservable.unsubscribe()
|
||||||
|
|
||||||
this.isUploadingVideo = false
|
this.isUploadingVideo = false
|
||||||
this.videoUploadPercents = 0
|
this.videoUploadPercents = 0
|
||||||
this.videoUploadObservable = null
|
this.videoUploadObservable = null
|
||||||
|
|
||||||
|
this.firstStepError.emit()
|
||||||
|
|
||||||
this.notifier.info(this.i18n('Upload cancelled'))
|
this.notifier.info(this.i18n('Upload cancelled'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue