aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-16 15:24:50 +0200
committerChocobozzz <me@florianbigard.com>2018-07-16 15:24:50 +0200
commit329d9086601b7ae2127be12166ee8c892c289c6e (patch)
tree36bafacfcf438a14517a91f6614be64cedbe0854 /client/src/app/videos
parent025c9794674b49ed3600a65d4608dd5677f0bcf4 (diff)
downloadPeerTube-329d9086601b7ae2127be12166ee8c892c289c6e.tar.gz
PeerTube-329d9086601b7ae2127be12166ee8c892c289c6e.tar.zst
PeerTube-329d9086601b7ae2127be12166ee8c892c289c6e.zip
Do not display private privacy if the video is not private
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index b67874401..72fcc8659 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -84,7 +84,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
84 84
85 // We cannot set private a video that was not private 85 // We cannot set private a video that was not private
86 if (this.video.privacy !== VideoPrivacy.PRIVATE) { 86 if (this.video.privacy !== VideoPrivacy.PRIVATE) {
87 this.videoPrivacies = this.videoPrivacies.filter(p => p.id !== VideoPrivacy.PRIVATE) 87 this.videoPrivacies = this.videoPrivacies.filter(p => p.id.toString() !== VideoPrivacy.PRIVATE.toString())
88 } else { // We can schedule video publication only if it it is private 88 } else { // We can schedule video publication only if it it is private
89 this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE 89 this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE
90 } 90 }