aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/shared/video-edit.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/+video-edit/shared/video-edit.component.ts')
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.ts b/client/src/app/videos/+video-edit/shared/video-edit.component.ts
index 2b307d5fa..85e5cc3f5 100644
--- a/client/src/app/videos/+video-edit/shared/video-edit.component.ts
+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.ts
@@ -1,6 +1,7 @@
1import { Component, Input, OnInit } from '@angular/core' 1import { Component, Input, OnInit } from '@angular/core'
2import { FormBuilder, FormControl, FormGroup } from '@angular/forms' 2import { FormBuilder, FormControl, FormGroup } from '@angular/forms'
3import { ActivatedRoute, Router } from '@angular/router' 3import { ActivatedRoute, Router } from '@angular/router'
4import { VIDEO_IMAGE } from '@app/shared'
4import { NotificationsService } from 'angular2-notifications' 5import { NotificationsService } from 'angular2-notifications'
5import 'rxjs/add/observable/forkJoin' 6import 'rxjs/add/observable/forkJoin'
6import { ServerService } from '../../../core/server' 7import { ServerService } from '../../../core/server'
@@ -57,6 +58,8 @@ export class VideoEditComponent implements OnInit {
57 this.formErrors['licence'] = '' 58 this.formErrors['licence'] = ''
58 this.formErrors['language'] = '' 59 this.formErrors['language'] = ''
59 this.formErrors['description'] = '' 60 this.formErrors['description'] = ''
61 this.formErrors['thumbnailfile'] = ''
62 this.formErrors['previewfile'] = ''
60 63
61 this.validationMessages['name'] = VIDEO_NAME.MESSAGES 64 this.validationMessages['name'] = VIDEO_NAME.MESSAGES
62 this.validationMessages['privacy'] = VIDEO_PRIVACY.MESSAGES 65 this.validationMessages['privacy'] = VIDEO_PRIVACY.MESSAGES
@@ -65,6 +68,8 @@ export class VideoEditComponent implements OnInit {
65 this.validationMessages['licence'] = VIDEO_LICENCE.MESSAGES 68 this.validationMessages['licence'] = VIDEO_LICENCE.MESSAGES
66 this.validationMessages['language'] = VIDEO_LANGUAGE.MESSAGES 69 this.validationMessages['language'] = VIDEO_LANGUAGE.MESSAGES
67 this.validationMessages['description'] = VIDEO_DESCRIPTION.MESSAGES 70 this.validationMessages['description'] = VIDEO_DESCRIPTION.MESSAGES
71 this.validationMessages['thumbnailfile'] = VIDEO_IMAGE.MESSAGES
72 this.validationMessages['previewfile'] = VIDEO_IMAGE.MESSAGES
68 73
69 this.form.addControl('name', new FormControl('', VIDEO_NAME.VALIDATORS)) 74 this.form.addControl('name', new FormControl('', VIDEO_NAME.VALIDATORS))
70 this.form.addControl('privacy', new FormControl('', VIDEO_PRIVACY.VALIDATORS)) 75 this.form.addControl('privacy', new FormControl('', VIDEO_PRIVACY.VALIDATORS))
@@ -76,6 +81,8 @@ export class VideoEditComponent implements OnInit {
76 this.form.addControl('language', new FormControl('', VIDEO_LANGUAGE.VALIDATORS)) 81 this.form.addControl('language', new FormControl('', VIDEO_LANGUAGE.VALIDATORS))
77 this.form.addControl('description', new FormControl('', VIDEO_DESCRIPTION.VALIDATORS)) 82 this.form.addControl('description', new FormControl('', VIDEO_DESCRIPTION.VALIDATORS))
78 this.form.addControl('tags', new FormControl('')) 83 this.form.addControl('tags', new FormControl(''))
84 this.form.addControl('thumbnailfile', new FormControl(''))
85 this.form.addControl('previewfile', new FormControl(''))
79 } 86 }
80 87
81 ngOnInit () { 88 ngOnInit () {