aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
index 802345945..9ce3fbc6d 100644
--- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
+++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
@@ -127,9 +127,13 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
127 cancelUpload () { 127 cancelUpload () {
128 if (this.videoUploadObservable !== null) { 128 if (this.videoUploadObservable !== null) {
129 this.videoUploadObservable.unsubscribe() 129 this.videoUploadObservable.unsubscribe()
130
130 this.isUploadingVideo = false 131 this.isUploadingVideo = false
131 this.videoUploadPercents = 0 132 this.videoUploadPercents = 0
132 this.videoUploadObservable = null 133 this.videoUploadObservable = null
134
135 this.firstStepError.emit()
136
133 this.notifier.info(this.i18n('Upload cancelled')) 137 this.notifier.info(this.i18n('Upload cancelled'))
134 } 138 }
135 } 139 }