diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-16 17:36:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-16 17:36:42 +0200 |
commit | ef4c78da4f0da61aebfa42f6e8420bf431a68bc8 (patch) | |
tree | 085411f6c1086bf57da6e3b4821e16dff2587705 /client/src/app/videos/+video-edit/shared | |
parent | 019e47507212072a7b91fb18dd31b4170d9cb40c (diff) | |
download | PeerTube-ef4c78da4f0da61aebfa42f6e8420bf431a68bc8.tar.gz PeerTube-ef4c78da4f0da61aebfa42f6e8420bf431a68bc8.tar.zst PeerTube-ef4c78da4f0da61aebfa42f6e8420bf431a68bc8.zip |
Improve video edit/update/add typings
Diffstat (limited to 'client/src/app/videos/+video-edit/shared')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.ts | 10 |
1 files changed, 5 insertions, 5 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 c7beccb30..743c015cb 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 | |||
@@ -12,18 +12,18 @@ import { VideoCaptionService } from '@app/shared/video-caption' | |||
12 | import { VideoCaptionAddModalComponent } from '@app/videos/+video-edit/shared/video-caption-add-modal.component' | 12 | import { VideoCaptionAddModalComponent } from '@app/videos/+video-edit/shared/video-caption-add-modal.component' |
13 | import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model' | 13 | import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model' |
14 | import { removeElementFromArray } from '@app/shared/misc/utils' | 14 | import { removeElementFromArray } from '@app/shared/misc/utils' |
15 | import { VideoConstant } from '../../../../../../shared' | ||
15 | 16 | ||
16 | @Component({ | 17 | @Component({ |
17 | selector: 'my-video-edit', | 18 | selector: 'my-video-edit', |
18 | styleUrls: [ './video-edit.component.scss' ], | 19 | styleUrls: [ './video-edit.component.scss' ], |
19 | templateUrl: './video-edit.component.html' | 20 | templateUrl: './video-edit.component.html' |
20 | }) | 21 | }) |
21 | |||
22 | export class VideoEditComponent implements OnInit, OnDestroy { | 22 | export class VideoEditComponent implements OnInit, OnDestroy { |
23 | @Input() form: FormGroup | 23 | @Input() form: FormGroup |
24 | @Input() formErrors: { [ id: string ]: string } = {} | 24 | @Input() formErrors: { [ id: string ]: string } = {} |
25 | @Input() validationMessages: FormReactiveValidationMessages = {} | 25 | @Input() validationMessages: FormReactiveValidationMessages = {} |
26 | @Input() videoPrivacies = [] | 26 | @Input() videoPrivacies: { id: number, label: string }[] = [] |
27 | @Input() userVideoChannels: { id: number, label: string, support: string }[] = [] | 27 | @Input() userVideoChannels: { id: number, label: string, support: string }[] = [] |
28 | @Input() schedulePublicationPossible = true | 28 | @Input() schedulePublicationPossible = true |
29 | @Input() videoCaptions: VideoCaptionEdit[] = [] | 29 | @Input() videoCaptions: VideoCaptionEdit[] = [] |
@@ -33,9 +33,9 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
33 | // So that it can be accessed in the template | 33 | // So that it can be accessed in the template |
34 | readonly SPECIAL_SCHEDULED_PRIVACY = VideoEdit.SPECIAL_SCHEDULED_PRIVACY | 34 | readonly SPECIAL_SCHEDULED_PRIVACY = VideoEdit.SPECIAL_SCHEDULED_PRIVACY |
35 | 35 | ||
36 | videoCategories = [] | 36 | videoCategories: VideoConstant<string>[] = [] |
37 | videoLicences = [] | 37 | videoLicences: VideoConstant<string>[] = [] |
38 | videoLanguages = [] | 38 | videoLanguages: VideoConstant<string>[] = [] |
39 | 39 | ||
40 | tagValidators: ValidatorFn[] | 40 | tagValidators: ValidatorFn[] |
41 | tagValidatorsMessages: { [ name: string ]: string } | 41 | tagValidatorsMessages: { [ name: string ]: string } |