Do not display wait transcoding checkbox
If this is a live and save replay is not enabled
This commit is contained in:
parent
ae48a71d57
commit
0151c41c65
|
@ -136,7 +136,7 @@
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</my-peertube-checkbox>
|
</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-template ptTemplate="label">
|
||||||
<ng-container i18n>Publish after transcoding</ng-container>
|
<ng-container i18n>Publish after transcoding</ng-container>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
|
@ -102,6 +102,16 @@ export class VideoEditComponent implements OnInit, OnDestroy {
|
||||||
.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 () {
|
updateForm () {
|
||||||
const defaultValues: any = {
|
const defaultValues: any = {
|
||||||
nsfw: 'false',
|
nsfw: 'false',
|
||||||
|
|
Loading…
Reference in New Issue