diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-16 16:35:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-16 16:35:32 +0100 |
commit | 6de36768980ef6063b8fcd730b59fa685dd2b99c (patch) | |
tree | a8e5a87b14013b33bf2d306552a380c407a1551d /client/src/app/videos/+video-edit/shared/video-edit.component.ts | |
parent | b6a4fd6b099b3363ac59c06cfd81b54e1356d8bc (diff) | |
download | PeerTube-6de36768980ef6063b8fcd730b59fa685dd2b99c.tar.gz PeerTube-6de36768980ef6063b8fcd730b59fa685dd2b99c.tar.zst PeerTube-6de36768980ef6063b8fcd730b59fa685dd2b99c.zip |
Add ability to update thumbnail and preview on client
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.ts | 7 |
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 @@ | |||
1 | import { Component, Input, OnInit } from '@angular/core' | 1 | import { Component, Input, OnInit } from '@angular/core' |
2 | import { FormBuilder, FormControl, FormGroup } from '@angular/forms' | 2 | import { FormBuilder, FormControl, FormGroup } from '@angular/forms' |
3 | import { ActivatedRoute, Router } from '@angular/router' | 3 | import { ActivatedRoute, Router } from '@angular/router' |
4 | import { VIDEO_IMAGE } from '@app/shared' | ||
4 | import { NotificationsService } from 'angular2-notifications' | 5 | import { NotificationsService } from 'angular2-notifications' |
5 | import 'rxjs/add/observable/forkJoin' | 6 | import 'rxjs/add/observable/forkJoin' |
6 | import { ServerService } from '../../../core/server' | 7 | import { 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 () { |