import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service'
import { VideoImportComponent } from '@app/videos/+video-edit/video-import.component'
import { VideoUploadComponent } from '@app/videos/+video-edit/video-upload.component'
+import { ServerService } from '@app/core'
@Component({
selector: 'my-videos-add',
secondStepType: 'upload' | 'import'
videoName: string
+ constructor (
+ private serverService: ServerService
+ ) {}
+
onFirstStepDone (type: 'upload' | 'import', videoName: string) {
this.secondStepType = type
this.videoName = videoName
return { canDeactivate: true }
}
+
+ isVideoImportEnabled () {
+ return this.serverService.getConfig().import.video.http.enabled
+ }
}