Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
e713698f
Verified
Commit
e713698f
authored
Apr 14, 2020
by
Chocobozzz
Browse files
Fix cancel upload
parent
8e4aff44
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
View file @
e713698f
...
...
@@ -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
'
))
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment