From e713698f3db53bdc14dcd1b51ad5f85d522169cd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Apr 2020 09:54:22 +0200 Subject: Fix cancel upload --- .../videos/+video-edit/video-add-components/video-upload.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src') 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 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')) } } -- cgit v1.2.3