diff options
Diffstat (limited to 'client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-create.component.ts')
-rw-r--r-- | client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-create.component.ts | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-create.component.ts index 5c438c3bf..e2ea87fb8 100644 --- a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-create.component.ts +++ b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-create.component.ts | |||
@@ -1,7 +1,13 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { Router } from '@angular/router' | 2 | import { Router } from '@angular/router' |
3 | import { AuthService, Notifier } from '@app/core' | 3 | import { AuthService, Notifier } from '@app/core' |
4 | import { FormValidatorService, VideoChannelValidatorsService } from '@app/shared/shared-forms' | 4 | import { |
5 | VIDEO_CHANNEL_DESCRIPTION_VALIDATOR, | ||
6 | VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, | ||
7 | VIDEO_CHANNEL_NAME_VALIDATOR, | ||
8 | VIDEO_CHANNEL_SUPPORT_VALIDATOR | ||
9 | } from '@app/shared/form-validators/video-channel-validators' | ||
10 | import { FormValidatorService } from '@app/shared/shared-forms' | ||
5 | import { VideoChannelService } from '@app/shared/shared-main' | 11 | import { VideoChannelService } from '@app/shared/shared-main' |
6 | import { VideoChannelCreate } from '@shared/models' | 12 | import { VideoChannelCreate } from '@shared/models' |
7 | import { MyAccountVideoChannelEdit } from './my-account-video-channel-edit' | 13 | import { MyAccountVideoChannelEdit } from './my-account-video-channel-edit' |
@@ -17,7 +23,6 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE | |||
17 | constructor ( | 23 | constructor ( |
18 | protected formValidatorService: FormValidatorService, | 24 | protected formValidatorService: FormValidatorService, |
19 | private authService: AuthService, | 25 | private authService: AuthService, |
20 | private videoChannelValidatorsService: VideoChannelValidatorsService, | ||
21 | private notifier: Notifier, | 26 | private notifier: Notifier, |
22 | private router: Router, | 27 | private router: Router, |
23 | private videoChannelService: VideoChannelService | 28 | private videoChannelService: VideoChannelService |
@@ -31,10 +36,10 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE | |||
31 | 36 | ||
32 | ngOnInit () { | 37 | ngOnInit () { |
33 | this.buildForm({ | 38 | this.buildForm({ |
34 | name: this.videoChannelValidatorsService.VIDEO_CHANNEL_NAME, | 39 | name: VIDEO_CHANNEL_NAME_VALIDATOR, |
35 | 'display-name': this.videoChannelValidatorsService.VIDEO_CHANNEL_DISPLAY_NAME, | 40 | 'display-name': VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, |
36 | description: this.videoChannelValidatorsService.VIDEO_CHANNEL_DESCRIPTION, | 41 | description: VIDEO_CHANNEL_DESCRIPTION_VALIDATOR, |
37 | support: this.videoChannelValidatorsService.VIDEO_CHANNEL_SUPPORT | 42 | support: VIDEO_CHANNEL_SUPPORT_VALIDATOR |
38 | }) | 43 | }) |
39 | } | 44 | } |
40 | 45 | ||