aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-14 09:54:22 +0200
committerChocobozzz <me@florianbigard.com>2020-04-14 09:54:22 +0200
commite713698f3db53bdc14dcd1b51ad5f85d522169cd (patch)
tree971f953a3833bc5c22218c3a686f707d83ecb7d0 /client
parent8e4aff44b060ec439b04bb2e6904ea03a637db00 (diff)
downloadPeerTube-e713698f3db53bdc14dcd1b51ad5f85d522169cd.tar.gz
PeerTube-e713698f3db53bdc14dcd1b51ad5f85d522169cd.tar.zst
PeerTube-e713698f3db53bdc14dcd1b51ad5f85d522169cd.zip
Fix cancel upload
Diffstat (limited to 'client')
-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 }