aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.ts
diff options
context:
space:
mode:
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.ts12
1 files changed, 7 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 21311b184..d930423c2 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -11,12 +11,13 @@ import {
11 VIDEO_LICENCE, 11 VIDEO_LICENCE,
12 VIDEO_LANGUAGE, 12 VIDEO_LANGUAGE,
13 VIDEO_DESCRIPTION, 13 VIDEO_DESCRIPTION,
14 VIDEO_TAGS 14 VIDEO_TAGS,
15 VIDEO_FILE
15} from '../../shared' 16} from '../../shared'
17import { ServerService} from '../../core'
16import { VideoService } from '../shared' 18import { VideoService } from '../shared'
17import { VideoCreate } from '../../../../../shared' 19import { VideoCreate } from '../../../../../shared'
18import { HttpEventType, HttpResponse } from '@angular/common/http' 20import { HttpEventType, HttpResponse } from '@angular/common/http'
19import { VIDEO_FILE } from '../../shared/forms/form-validators/video'
20 21
21@Component({ 22@Component({
22 selector: 'my-videos-add', 23 selector: 'my-videos-add',
@@ -59,6 +60,7 @@ export class VideoAddComponent extends FormReactive implements OnInit {
59 private formBuilder: FormBuilder, 60 private formBuilder: FormBuilder,
60 private router: Router, 61 private router: Router,
61 private notificationsService: NotificationsService, 62 private notificationsService: NotificationsService,
63 private serverService: ServerService,
62 private videoService: VideoService 64 private videoService: VideoService
63 ) { 65 ) {
64 super() 66 super()
@@ -84,9 +86,9 @@ export class VideoAddComponent extends FormReactive implements OnInit {
84 } 86 }
85 87
86 ngOnInit () { 88 ngOnInit () {
87 this.videoCategories = this.videoService.videoCategories 89 this.videoCategories = this.serverService.getVideoCategories()
88 this.videoLicences = this.videoService.videoLicences 90 this.videoLicences = this.serverService.getVideoLicences()
89 this.videoLanguages = this.videoService.videoLanguages 91 this.videoLanguages = this.serverService.getVideoLanguages()
90 92
91 this.buildForm() 93 this.buildForm()
92 } 94 }