diff options
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.ts | 7 |
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' | |||
7 | import { NotificationsService } from 'angular2-notifications' | 7 | import { NotificationsService } from 'angular2-notifications' |
8 | import { BytesPipe } from 'ngx-pipes' | 8 | import { BytesPipe } from 'ngx-pipes' |
9 | import { Subscription } from 'rxjs' | 9 | import { Subscription } from 'rxjs' |
10 | import { VideoPrivacy } from '../../../../../shared/models/videos' | 10 | import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos' |
11 | import { AuthService, ServerService } from '../../core' | 11 | import { AuthService, ServerService } from '../../core' |
12 | import { FormReactive } from '../../shared' | 12 | import { FormReactive } from '../../shared' |
13 | import { populateAsyncUserVideoChannels } from '../../shared/misc/utils' | 13 | import { populateAsyncUserVideoChannels } from '../../shared/misc/utils' |
@@ -17,6 +17,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
17 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 17 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
18 | import { switchMap } from 'rxjs/operators' | 18 | import { switchMap } from 'rxjs/operators' |
19 | import { VideoCaptionService } from '@app/shared/video-caption' | 19 | import { VideoCaptionService } from '@app/shared/video-caption' |
20 | import { 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, |