From 047559af6e7570ac98b0d11ab43e60a9c5c1f5c3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Aug 2018 15:18:35 +0200 Subject: video-import -> video-import-url --- client/src/app/videos/+video-edit/video-add.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client/src/app/videos/+video-edit/video-add.component.ts') 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 @@ import { Component, ViewChild } from '@angular/core' import { CanComponentDeactivate } from '@app/shared/guards/can-deactivate-guard.service' -import { VideoImportComponent } from '@app/videos/+video-edit/video-import.component' +import { VideoImportUrlComponent } from '@app/videos/+video-edit/video-import-url.component' import { VideoUploadComponent } from '@app/videos/+video-edit/video-upload.component' import { ServerService } from '@app/core' @@ -11,23 +11,23 @@ import { ServerService } from '@app/core' }) export class VideoAddComponent implements CanComponentDeactivate { @ViewChild('videoUpload') videoUpload: VideoUploadComponent - @ViewChild('videoImport') videoImport: VideoImportComponent + @ViewChild('videoImportUrl') videoImportUrl: VideoImportUrlComponent - secondStepType: 'upload' | 'import' + secondStepType: 'upload' | 'import-url' videoName: string constructor ( private serverService: ServerService ) {} - onFirstStepDone (type: 'upload' | 'import', videoName: string) { + onFirstStepDone (type: 'upload' | 'import-url', videoName: string) { this.secondStepType = type this.videoName = videoName } canDeactivate () { if (this.secondStepType === 'upload') return this.videoUpload.canDeactivate() - if (this.secondStepType === 'import') return this.videoImport.canDeactivate() + if (this.secondStepType === 'import-url') return this.videoImportUrl.canDeactivate() return { canDeactivate: true } } -- cgit v1.2.3