ActivityPub-federated video streaming platform using P2P directly in your web browser
Do not display wait transcoding checkbox
Chocobozzz0151c41c65e0
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.htmlindex 3a24c4136f..bf8b0b2673 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html@@ -136,7 +136,7 @@</ng-template></my-peertube-checkbox>- <my-peertube-checkbox *ngIf="waitTranscodingEnabled" inputName="waitTranscoding" formControlName="waitTranscoding" helpPlacement="bottom-right">+ <my-peertube-checkbox *ngIf="isWaitTranscodingDisplayed()" inputName="waitTranscoding" formControlName="waitTranscoding" helpPlacement="bottom-right"><ng-template ptTemplate="label"><ng-container i18n>Publish after transcoding</ng-container></ng-template>diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.tsindex 26d871e593..de78a18cc6 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts@@ -102,6 +102,16 @@ export class VideoEditComponent implements OnInit, OnDestroy {.map(c => c.language.id)}+ isWaitTranscodingDisplayed () {+ if (!this.waitTranscodingEnabled) return false++ if (this.liveVideo) {+ return this.form.value['saveReplay'] === true+ }++ return true+ }+updateForm () {const defaultValues: any = {nsfw: 'false',