From 71d00bfd7ff72923e5f76d851629786a56256d1e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 25 Apr 2019 09:52:07 +0200 Subject: Fix explained privacies on first upload screen --- .../video-add-components/video-import-torrent.component.html | 2 +- .../+video-edit/video-add-components/video-import-torrent.component.ts | 2 +- .../+video-edit/video-add-components/video-import-url.component.html | 2 +- .../+video-edit/video-add-components/video-import-url.component.ts | 2 +- client/src/app/videos/+video-edit/video-add-components/video-send.ts | 1 + .../+video-edit/video-add-components/video-upload.component.html | 2 +- .../videos/+video-edit/video-add-components/video-upload.component.ts | 2 +- client/src/app/videos/+video-edit/video-update.component.html | 2 +- client/src/app/videos/+video-edit/video-update.component.ts | 3 ++- 9 files changed, 10 insertions(+), 8 deletions(-) (limited to 'client/src') diff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html b/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html index 28eb143c9..537d7ffa2 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html +++ b/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.html @@ -58,7 +58,7 @@
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 c12a1d653..d2e9f6cfe 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 @@ -100,7 +100,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca previewUrl: null })) - this.videoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) + this.explainedVideoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) this.hydrateFormFromVideo() }, diff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.html b/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.html index 3550c3585..984b9d590 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.html +++ b/client/src/app/videos/+video-edit/video-add-components/video-import-url.component.html @@ -51,7 +51,7 @@
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 d11685916..2dffdbf0e 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 @@ -91,7 +91,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom previewUrl: null })) - this.videoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) + this.explainedVideoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) this.hydrateFormFromVideo() }, 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 580c123a0..8401caeec 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 @@ -14,6 +14,7 @@ import { CanComponentDeactivateResult } from '@app/shared/guards/can-deactivate- export abstract class VideoSend extends FormReactive implements OnInit { userVideoChannels: { id: number, label: string, support: string }[] = [] videoPrivacies: VideoConstant[] = [] + explainedVideoPrivacies: VideoConstant[] = [] videoCaptions: VideoCaptionEdit[] = [] firstStepPrivacyId = 0 diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html index b252cd60a..536769d2f 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html @@ -50,7 +50,7 @@ diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts index 7399f39ee..d6d4bad21 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts @@ -190,7 +190,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy channelId }) - this.videoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) + this.explainedVideoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) this.videoUploadObservable = this.videoService.uploadVideo(formData).subscribe( event => { diff --git a/client/src/app/videos/+video-edit/video-update.component.html b/client/src/app/videos/+video-edit/video-update.component.html index 4992bb369..b5cab7ed5 100644 --- a/client/src/app/videos/+video-edit/video-update.component.html +++ b/client/src/app/videos/+video-edit/video-update.component.html @@ -7,7 +7,7 @@ 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 9e849014e..10f797d02 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts @@ -24,6 +24,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { isUpdatingVideo = false videoPrivacies: VideoConstant[] = [] + explainedVideoPrivacies: VideoConstant[] = [] userVideoChannels: { id: number, label: string, support: string }[] = [] schedulePublicationPossible = false videoCaptions: VideoCaptionEdit[] = [] @@ -65,7 +66,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE } - this.videoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) + this.explainedVideoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies) const videoFiles = (video as VideoDetails).files if (videoFiles.length > 1) { // Already transcoded -- cgit v1.2.3