If this is a live and save replay is not enabled
</ng-template>
</my-peertube-checkbox>
</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>
<ng-template ptTemplate="label">
<ng-container i18n>Publish after transcoding</ng-container>
</ng-template>
.map(c => c.language.id)
}
.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',
updateForm () {
const defaultValues: any = {
nsfw: 'false',