aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-16 10:05:25 +0100
committerChocobozzz <me@florianbigard.com>2018-11-16 10:05:25 +0100
commit7373507fa830b0f18cb4cd95dfd923b1600e501d (patch)
tree112fc5b4bc0cabd599a39452962cefb9733f97ec /client/src/app/videos/+video-edit/video-add.component.ts
parentfe05c3acbd48c72ac7e503bebde91830121a0bf1 (diff)
downloadPeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.gz
PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.zst
PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.zip
Improve video upload error handling
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add.component.ts')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.ts
index 1a9247dbe..57a9d0ca7 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -27,6 +27,11 @@ export class VideoAddComponent implements CanComponentDeactivate {
27 this.videoName = videoName 27 this.videoName = videoName
28 } 28 }
29 29
30 onError () {
31 this.videoName = undefined
32 this.secondStepType = undefined
33 }
34
30 canDeactivate () { 35 canDeactivate () {
31 if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate() 36 if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate()
32 if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate() 37 if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate()