aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-06 15:18:35 +0200
committerChocobozzz <me@florianbigard.com>2018-08-08 09:30:31 +0200
commit047559af6e7570ac98b0d11ab43e60a9c5c1f5c3 (patch)
treee624fabf51a1424f863e5da088e24edc68f3a461 /client/src/app/videos/+video-edit/video-add.component.ts
parent43620009d5bc0d2a8da6480276b046d1c946bdc9 (diff)
downloadPeerTube-047559af6e7570ac98b0d11ab43e60a9c5c1f5c3.tar.gz
PeerTube-047559af6e7570ac98b0d11ab43e60a9c5c1f5c3.tar.zst
PeerTube-047559af6e7570ac98b0d11ab43e60a9c5c1f5c3.zip
video-import -> video-import-url
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.ts10
1 files changed, 5 insertions, 5 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 69b364ddd..377ea5dd2 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -1,6 +1,6 @@
1import { Component, ViewChild } from '@angular/core' 1import { Component, ViewChild } from '@angular/core'
2import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service' 2import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
3import { VideoImportComponent } from '@app/videos/+video-edit/video-import.component' 3import { VideoImportUrlComponent } from '@app/videos/+video-edit/video-import-url.component'
4import { VideoUploadComponent } from '@app/videos/+video-edit/video-upload.component' 4import { VideoUploadComponent } from '@app/videos/+video-edit/video-upload.component'
5import { ServerService } from '@app/core' 5import { ServerService } from '@app/core'
6 6
@@ -11,23 +11,23 @@ import { ServerService } from '@app/core'
11}) 11})
12export class VideoAddComponent implements CanComponentDeactivate { 12export class VideoAddComponent implements CanComponentDeactivate {
13 @ViewChild('videoUpload') videoUpload: VideoUploadComponent 13 @ViewChild('videoUpload') videoUpload: VideoUploadComponent
14 @ViewChild('videoImport') videoImport: VideoImportComponent 14 @ViewChild('videoImportUrl') videoImportUrl: VideoImportUrlComponent
15 15
16 secondStepType: 'upload' | 'import' 16 secondStepType: 'upload' | 'import-url'
17 videoName: string 17 videoName: string
18 18
19 constructor ( 19 constructor (
20 private serverService: ServerService 20 private serverService: ServerService
21 ) {} 21 ) {}
22 22
23 onFirstStepDone (type: 'upload' | 'import', videoName: string) { 23 onFirstStepDone (type: 'upload' | 'import-url', videoName: string) {
24 this.secondStepType = type 24 this.secondStepType = type
25 this.videoName = videoName 25 this.videoName = videoName
26 } 26 }
27 27
28 canDeactivate () { 28 canDeactivate () {
29 if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate() 29 if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate()
30 if (this.secondStepType === 'import') return this.videoImport.canDeactivate() 30 if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate()
31 31
32 return { canDeactivate: true } 32 return { canDeactivate: true }
33 } 33 }