diff options
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.ts | 9 |
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' | |||
3 | import { ActivatedRoute, Router } from '@angular/router' | 3 | import { ActivatedRoute, Router } from '@angular/router' |
4 | import { LoadingBarService } from '@ngx-loading-bar/core' | 4 | import { LoadingBarService } from '@ngx-loading-bar/core' |
5 | import { NotificationsService } from 'angular2-notifications' | 5 | import { NotificationsService } from 'angular2-notifications' |
6 | import { VideoPrivacy } from '../../../../../shared/models/videos' | 6 | import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos' |
7 | import { ServerService } from '../../core' | 7 | import { ServerService } from '../../core' |
8 | import { AuthService } from '../../core/auth' | 8 | import { AuthService } from '../../core/auth' |
9 | import { FormReactive } from '../../shared' | 9 | import { FormReactive } from '../../shared' |
@@ -13,6 +13,7 @@ import { VideoChannelService } from '@app/shared/video-channel/video-channel.ser | |||
13 | import { I18n } from '@ngx-translate/i18n-polyfill' | 13 | import { I18n } from '@ngx-translate/i18n-polyfill' |
14 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 14 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
15 | import { VideoCaptionService } from '@app/shared/video-caption' | 15 | import { VideoCaptionService } from '@app/shared/video-caption' |
16 | import { 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, |