mirror of https://github.com/Chocobozzz/PeerTube
Don't display transcription message with a caption
parent
af73531e3a
commit
5f0f4ba7de
|
|
@ -173,7 +173,7 @@
|
||||||
|
|
||||||
<ng-template ngbNavContent>
|
<ng-template ngbNavContent>
|
||||||
<div class="captions">
|
<div class="captions">
|
||||||
<div class="alert pt-alert-primary" *ngIf="displayTranscriptionInfo && isTranscriptionEnabled()" i18n>
|
<div class="alert pt-alert-primary" *ngIf="displayTranscriptionInfo && isTranscriptionEnabled() && !hasCaptions()" i18n>
|
||||||
A subtitle will be automatically generated from your video.
|
A subtitle will be automatically generated from your video.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -430,6 +430,10 @@ export class VideoEditComponent implements OnInit, OnDestroy {
|
||||||
return this.serverConfig.videoTranscription.enabled
|
return this.serverConfig.videoTranscription.enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hasCaptions () {
|
||||||
|
return this.getExistingCaptions().length !== 0
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
resetField (name: string) {
|
resetField (name: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue