diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-06-05 11:05:25 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-06-08 09:22:06 +0200 |
commit | 295106516277581ba4967199fa5580264a90ae2c (patch) | |
tree | 1e95f4ba0f4c354802a495939d642590a5d3b5fa /client/src/app/+videos/+video-edit/video-add-components/video-send.ts | |
parent | 27bc95867442c772841fb183a625bbda61dede51 (diff) | |
download | PeerTube-295106516277581ba4967199fa5580264a90ae2c.tar.gz PeerTube-295106516277581ba4967199fa5580264a90ae2c.tar.zst PeerTube-295106516277581ba4967199fa5580264a90ae2c.zip |
allow public video privacy to be deleted in the web client
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 | 6 |
1 files changed, 3 insertions, 3 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 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 { | |||
20 | 20 | ||
21 | abstract firstStepDone: EventEmitter<string> | 21 | abstract firstStepDone: EventEmitter<string> |
22 | abstract firstStepError: EventEmitter<void> | 22 | abstract firstStepError: EventEmitter<void> |
23 | protected abstract readonly DEFAULT_VIDEO_PRIVACY: VideoPrivacy | ||
24 | 23 | ||
25 | protected loadingBar: LoadingBarService | 24 | protected loadingBar: LoadingBarService |
26 | protected notifier: Notifier | 25 | protected notifier: Notifier |
@@ -46,9 +45,10 @@ export abstract class VideoSend extends FormReactive implements OnInit { | |||
46 | this.serverService.getVideoPrivacies() | 45 | this.serverService.getVideoPrivacies() |
47 | .subscribe( | 46 | .subscribe( |
48 | privacies => { | 47 | privacies => { |
49 | this.videoPrivacies = this.videoService.explainedPrivacyLabels(privacies) | 48 | const { videoPrivacies, defaultPrivacyId } = this.videoService.explainedPrivacyLabels(privacies) |
50 | 49 | ||
51 | this.firstStepPrivacyId = this.DEFAULT_VIDEO_PRIVACY | 50 | this.videoPrivacies = videoPrivacies |
51 | this.firstStepPrivacyId = defaultPrivacyId | ||
52 | }) | 52 | }) |
53 | } | 53 | } |
54 | 54 | ||