diff options
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.ts | 5 |
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() |