aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-19 11:49:50 +0100
committerChocobozzz <me@florianbigard.com>2021-01-19 16:36:20 +0100
commitd487a997c80fafe6067016c6cd8e8afd6141baa3 (patch)
tree2fd8987f50ae56d1f74543f264cd171b90809a3b
parent1ef7f3230473c8a74032d269e027201c3a51974d (diff)
downloadPeerTube-d487a997c80fafe6067016c6cd8e8afd6141baa3.tar.gz
PeerTube-d487a997c80fafe6067016c6cd8e8afd6141baa3.tar.zst
PeerTube-d487a997c80fafe6067016c6cd8e8afd6141baa3.zip
Import in private, and then set the chosen privacy
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts4
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts3
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts3
3 files changed, 7 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
index a87d84d48..67d055f06 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
@@ -55,8 +55,10 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon
55 } 55 }
56 56
57 goLive () { 57 goLive () {
58 const name = 'Live'
59
58 const video: LiveVideoCreate = { 60 const video: LiveVideoCreate = {
59 name: 'Live', 61 name,
60 privacy: VideoPrivacy.PRIVATE, 62 privacy: VideoPrivacy.PRIVATE,
61 nsfw: this.serverConfig.instance.isNSFW, 63 nsfw: this.serverConfig.instance.isNSFW,
62 waitTranscoding: true, 64 waitTranscoding: true,
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts
index caa7af90a..01087e525 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts
@@ -76,7 +76,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
76 this.isImportingVideo = true 76 this.isImportingVideo = true
77 77
78 const videoUpdate: VideoUpdate = { 78 const videoUpdate: VideoUpdate = {
79 privacy: this.firstStepPrivacyId, 79 privacy: VideoPrivacy.PRIVATE,
80 waitTranscoding: false, 80 waitTranscoding: false,
81 commentsEnabled: true, 81 commentsEnabled: true,
82 downloadEnabled: true, 82 downloadEnabled: true,
@@ -95,6 +95,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca
95 this.video = new VideoEdit(Object.assign(res.video, { 95 this.video = new VideoEdit(Object.assign(res.video, {
96 commentsEnabled: videoUpdate.commentsEnabled, 96 commentsEnabled: videoUpdate.commentsEnabled,
97 downloadEnabled: videoUpdate.downloadEnabled, 97 downloadEnabled: videoUpdate.downloadEnabled,
98 privacy: { id: this.firstStepPrivacyId },
98 support: null, 99 support: null,
99 thumbnailUrl: null, 100 thumbnailUrl: null,
100 previewUrl: null 101 previewUrl: null
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
index 5ca753eaf..c447c179d 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
@@ -63,7 +63,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom
63 this.isImportingVideo = true 63 this.isImportingVideo = true
64 64
65 const videoUpdate: VideoUpdate = { 65 const videoUpdate: VideoUpdate = {
66 privacy: this.firstStepPrivacyId, 66 privacy: VideoPrivacy.PRIVATE,
67 waitTranscoding: false, 67 waitTranscoding: false,
68 commentsEnabled: true, 68 commentsEnabled: true,
69 downloadEnabled: true, 69 downloadEnabled: true,
@@ -103,6 +103,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom
103 this.video = new VideoEdit(Object.assign(video, { 103 this.video = new VideoEdit(Object.assign(video, {
104 commentsEnabled: videoUpdate.commentsEnabled, 104 commentsEnabled: videoUpdate.commentsEnabled,
105 downloadEnabled: videoUpdate.downloadEnabled, 105 downloadEnabled: videoUpdate.downloadEnabled,
106 privacy: { id: this.firstStepPrivacyId },
106 support: null, 107 support: null,
107 thumbnailUrl, 108 thumbnailUrl,
108 previewUrl 109 previewUrl