From 295106516277581ba4967199fa5580264a90ae2c Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 5 Jun 2021 11:05:25 +0200 Subject: allow public video privacy to be deleted in the web client --- .../src/app/+videos/+video-edit/video-add-components/video-send.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-send.ts') 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 a185892fe..0e7a26a47 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 @@ -20,7 +20,6 @@ export abstract class VideoSend extends FormReactive implements OnInit { abstract firstStepDone: EventEmitter abstract firstStepError: EventEmitter - protected abstract readonly DEFAULT_VIDEO_PRIVACY: VideoPrivacy protected loadingBar: LoadingBarService protected notifier: Notifier @@ -46,9 +45,10 @@ export abstract class VideoSend extends FormReactive implements OnInit { this.serverService.getVideoPrivacies() .subscribe( privacies => { - this.videoPrivacies = this.videoService.explainedPrivacyLabels(privacies) + const { videoPrivacies, defaultPrivacyId } = this.videoService.explainedPrivacyLabels(privacies) - this.firstStepPrivacyId = this.DEFAULT_VIDEO_PRIVACY + this.videoPrivacies = videoPrivacies + this.firstStepPrivacyId = defaultPrivacyId }) } -- cgit v1.2.3