aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-add.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-16 17:36:42 +0200
committerChocobozzz <me@florianbigard.com>2018-07-16 17:36:42 +0200
commitef4c78da4f0da61aebfa42f6e8420bf431a68bc8 (patch)
tree085411f6c1086bf57da6e3b4821e16dff2587705 /client/src/app/videos/+video-edit/video-add.component.ts
parent019e47507212072a7b91fb18dd31b4170d9cb40c (diff)
downloadPeerTube-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/video-add.component.ts')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts7
1 files changed, 4 insertions, 3 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 8c30cedfb..651ee8dd2 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -7,7 +7,7 @@ import { LoadingBarService } from '@ngx-loading-bar/core'
7import { NotificationsService } from 'angular2-notifications' 7import { NotificationsService } from 'angular2-notifications'
8import { BytesPipe } from 'ngx-pipes' 8import { BytesPipe } from 'ngx-pipes'
9import { Subscription } from 'rxjs' 9import { Subscription } from 'rxjs'
10import { VideoPrivacy } from '../../../../../shared/models/videos' 10import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos'
11import { AuthService, ServerService } from '../../core' 11import { AuthService, ServerService } from '../../core'
12import { FormReactive } from '../../shared' 12import { FormReactive } from '../../shared'
13import { populateAsyncUserVideoChannels } from '../../shared/misc/utils' 13import { populateAsyncUserVideoChannels } from '../../shared/misc/utils'
@@ -17,6 +17,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
17import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' 17import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
18import { switchMap } from 'rxjs/operators' 18import { switchMap } from 'rxjs/operators'
19import { VideoCaptionService } from '@app/shared/video-caption' 19import { VideoCaptionService } from '@app/shared/video-caption'
20import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
20 21
21@Component({ 22@Component({
22 selector: 'my-videos-add', 23 selector: 'my-videos-add',
@@ -45,10 +46,10 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
45 46
46 userVideoChannels: { id: number, label: string, support: string }[] = [] 47 userVideoChannels: { id: number, label: string, support: string }[] = []
47 userVideoQuotaUsed = 0 48 userVideoQuotaUsed = 0
48 videoPrivacies = [] 49 videoPrivacies: VideoConstant<string>[] = []
49 firstStepPrivacyId = 0 50 firstStepPrivacyId = 0
50 firstStepChannelId = 0 51 firstStepChannelId = 0
51 videoCaptions = [] 52 videoCaptions: VideoCaptionEdit[] = []
52 53
53 constructor ( 54 constructor (
54 protected formValidatorService: FormValidatorService, 55 protected formValidatorService: FormValidatorService,