aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
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.ts9
1 files changed, 5 insertions, 4 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 72fcc8659..4fe65bccd 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core'
3import { ActivatedRoute, Router } from '@angular/router' 3import { ActivatedRoute, Router } from '@angular/router'
4import { LoadingBarService } from '@ngx-loading-bar/core' 4import { LoadingBarService } from '@ngx-loading-bar/core'
5import { NotificationsService } from 'angular2-notifications' 5import { NotificationsService } from 'angular2-notifications'
6import { VideoPrivacy } from '../../../../../shared/models/videos' 6import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos'
7import { ServerService } from '../../core' 7import { ServerService } from '../../core'
8import { AuthService } from '../../core/auth' 8import { AuthService } from '../../core/auth'
9import { FormReactive } from '../../shared' 9import { FormReactive } from '../../shared'
@@ -13,6 +13,7 @@ import { VideoChannelService } from '@app/shared/video-channel/video-channel.ser
13import { I18n } from '@ngx-translate/i18n-polyfill' 13import { I18n } from '@ngx-translate/i18n-polyfill'
14import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' 14import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
15import { VideoCaptionService } from '@app/shared/video-caption' 15import { VideoCaptionService } from '@app/shared/video-caption'
16import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
16 17
17@Component({ 18@Component({
18 selector: 'my-videos-update', 19 selector: 'my-videos-update',
@@ -23,10 +24,10 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
23 video: VideoEdit 24 video: VideoEdit
24 25
25 isUpdatingVideo = false 26 isUpdatingVideo = false
26 videoPrivacies = [] 27 videoPrivacies: VideoConstant<string>[] = []
27 userVideoChannels = [] 28 userVideoChannels: { id: number, label: string, support: string }[] = []
28 schedulePublicationPossible = false 29 schedulePublicationPossible = false
29 videoCaptions = [] 30 videoCaptions: VideoCaptionEdit[] = []
30 31
31 constructor ( 32 constructor (
32 protected formValidatorService: FormValidatorService, 33 protected formValidatorService: FormValidatorService,