From 5f0f4ba7deb223f791fba294805006d79cb0715c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Jul 2024 09:55:17 +0200 Subject: [PATCH] Don't display transcription message with a caption --- .../app/+videos/+video-edit/shared/video-edit.component.html | 2 +- .../app/+videos/+video-edit/shared/video-edit.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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.html index 33a6c041a..b88abede6 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 @@ -173,7 +173,7 @@
-
+
A subtitle will be automatically generated from your video.
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.ts index 711111a6b..2e5e2f267 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 @@ -430,6 +430,10 @@ export class VideoEditComponent implements OnInit, OnDestroy { return this.serverConfig.videoTranscription.enabled } + hasCaptions () { + return this.getExistingCaptions().length !== 0 + } + // --------------------------------------------------------------------------- resetField (name: string) {