diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-send.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-send.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-send.ts b/client/src/app/+videos/+video-edit/video-add-components/video-send.ts index 0e7a26a47..ce8de049d 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-send.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-send.ts | |||
@@ -15,8 +15,8 @@ export abstract class VideoSend extends FormReactive implements OnInit { | |||
15 | videoPrivacies: VideoConstant<VideoPrivacy>[] = [] | 15 | videoPrivacies: VideoConstant<VideoPrivacy>[] = [] |
16 | videoCaptions: VideoCaptionEdit[] = [] | 16 | videoCaptions: VideoCaptionEdit[] = [] |
17 | 17 | ||
18 | firstStepPrivacyId = 0 | 18 | firstStepPrivacyId: VideoPrivacy |
19 | firstStepChannelId = 0 | 19 | firstStepChannelId: number |
20 | 20 | ||
21 | abstract firstStepDone: EventEmitter<string> | 21 | abstract firstStepDone: EventEmitter<string> |
22 | abstract firstStepError: EventEmitter<void> | 22 | abstract firstStepError: EventEmitter<void> |
@@ -24,11 +24,15 @@ export abstract class VideoSend extends FormReactive implements OnInit { | |||
24 | protected loadingBar: LoadingBarService | 24 | protected loadingBar: LoadingBarService |
25 | protected notifier: Notifier | 25 | protected notifier: Notifier |
26 | protected authService: AuthService | 26 | protected authService: AuthService |
27 | |||
27 | protected serverService: ServerService | 28 | protected serverService: ServerService |
28 | protected videoService: VideoService | 29 | protected videoService: VideoService |
29 | protected videoCaptionService: VideoCaptionService | 30 | protected videoCaptionService: VideoCaptionService |
31 | |||
30 | protected serverConfig: HTMLServerConfig | 32 | protected serverConfig: HTMLServerConfig |
31 | 33 | ||
34 | protected highestPrivacy: VideoPrivacy | ||
35 | |||
32 | abstract canDeactivate (): CanComponentDeactivateResult | 36 | abstract canDeactivate (): CanComponentDeactivateResult |
33 | 37 | ||
34 | ngOnInit () { | 38 | ngOnInit () { |
@@ -49,6 +53,8 @@ export abstract class VideoSend extends FormReactive implements OnInit { | |||
49 | 53 | ||
50 | this.videoPrivacies = videoPrivacies | 54 | this.videoPrivacies = videoPrivacies |
51 | this.firstStepPrivacyId = defaultPrivacyId | 55 | this.firstStepPrivacyId = defaultPrivacyId |
56 | |||
57 | this.highestPrivacy = this.videoService.getHighestAvailablePrivacy(privacies) | ||
52 | }) | 58 | }) |
53 | } | 59 | } |
54 | 60 | ||