X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fvideo-add-components%2Fvideo-send.ts;h=ce8de049d85d0b5a51c755ee36c76b3da758434c;hb=5f26f13b3c16ac5ae0a3b0a7142d84a9528cf565;hp=0e7a26a47daf05be88eefe92d8a3bb5ddd224a85;hpb=295106516277581ba4967199fa5580264a90ae2c;p=github%2FChocobozzz%2FPeerTube.git 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 { videoPrivacies: VideoConstant[] = [] videoCaptions: VideoCaptionEdit[] = [] - firstStepPrivacyId = 0 - firstStepChannelId = 0 + firstStepPrivacyId: VideoPrivacy + firstStepChannelId: number abstract firstStepDone: EventEmitter abstract firstStepError: EventEmitter @@ -24,11 +24,15 @@ export abstract class VideoSend extends FormReactive implements OnInit { protected loadingBar: LoadingBarService protected notifier: Notifier protected authService: AuthService + protected serverService: ServerService protected videoService: VideoService protected videoCaptionService: VideoCaptionService + protected serverConfig: HTMLServerConfig + protected highestPrivacy: VideoPrivacy + abstract canDeactivate (): CanComponentDeactivateResult ngOnInit () { @@ -49,6 +53,8 @@ export abstract class VideoSend extends FormReactive implements OnInit { this.videoPrivacies = videoPrivacies this.firstStepPrivacyId = defaultPrivacyId + + this.highestPrivacy = this.videoService.getHighestAvailablePrivacy(privacies) }) }