aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-09 19:12:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-09 19:12:40 +0200
commitdb7af09bd8e9de57cdda88c2e32387551235b3a4 (patch)
tree8e3cac831be63a2c66e3b6d5e3b22e33492fb726 /client/src/app/videos/+video-edit/video-update.component.ts
parentbcd1c9e19447a98d605385fab69b5cfa58d0ba4b (diff)
downloadPeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.gz
PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.tar.zst
PeerTube-db7af09bd8e9de57cdda88c2e32387551235b3a4.zip
Client: fix loading server configurations
Diffstat (limited to 'client/src/app/videos/+video-edit/video-update.component.ts')
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index 141ed3522..6d45265e7 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -1,10 +1,10 @@
1import { Component, ElementRef, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { FormBuilder, FormGroup } from '@angular/forms' 2import { FormBuilder, FormGroup } from '@angular/forms'
3import { ActivatedRoute, Router } from '@angular/router' 3import { ActivatedRoute, Router } from '@angular/router'
4 4
5import { NotificationsService } from 'angular2-notifications' 5import { NotificationsService } from 'angular2-notifications'
6 6
7import { AuthService } from '../../core' 7import { ServerService } from '../../core'
8import { 8import {
9 FormReactive, 9 FormReactive,
10 VIDEO_NAME, 10 VIDEO_NAME,
@@ -52,12 +52,11 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
52 fileError = '' 52 fileError = ''
53 53
54 constructor ( 54 constructor (
55 private authService: AuthService,
56 private elementRef: ElementRef,
57 private formBuilder: FormBuilder, 55 private formBuilder: FormBuilder,
58 private route: ActivatedRoute, 56 private route: ActivatedRoute,
59 private router: Router, 57 private router: Router,
60 private notificationsService: NotificationsService, 58 private notificationsService: NotificationsService,
59 private serverService: ServerService,
61 private videoService: VideoService 60 private videoService: VideoService
62 ) { 61 ) {
63 super() 62 super()
@@ -80,9 +79,9 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
80 ngOnInit () { 79 ngOnInit () {
81 this.buildForm() 80 this.buildForm()
82 81
83 this.videoCategories = this.videoService.videoCategories 82 this.videoCategories = this.serverService.getVideoCategories()
84 this.videoLicences = this.videoService.videoLicences 83 this.videoLicences = this.serverService.getVideoLicences()
85 this.videoLanguages = this.videoService.videoLanguages 84 this.videoLanguages = this.serverService.getVideoLanguages()
86 85
87 const uuid: string = this.route.snapshot.params['uuid'] 86 const uuid: string = this.route.snapshot.params['uuid']
88 this.videoService.getVideo(uuid) 87 this.videoService.getVideo(uuid)