From 44919a8d57697abc0cac97ee648503cd27656614 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 31 Jul 2024 08:56:33 +0200 Subject: [PATCH] Fix hidden runner jobs tab If remote runners feature is only enabled on transcription --- client/src/app/+admin/admin.component.ts | 3 ++- packages/models/src/server/server-config.model.ts | 4 ++++ server/core/lib/server-config-manager.ts | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index a172c5279..6ee2c02c2 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts @@ -234,6 +234,7 @@ export class AdminComponent implements OnInit { return config.transcoding.remoteRunners.enabled || config.live.transcoding.remoteRunners.enabled || - config.videoStudio.remoteRunners.enabled + config.videoStudio.remoteRunners.enabled || + config.videoTranscription.remoteRunners.enabled } } diff --git a/packages/models/src/server/server-config.model.ts b/packages/models/src/server/server-config.model.ts index 3d26d2efb..5b4f6b5f8 100644 --- a/packages/models/src/server/server-config.model.ts +++ b/packages/models/src/server/server-config.model.ts @@ -349,6 +349,10 @@ export interface ServerConfig { videoTranscription: { enabled: boolean + + remoteRunners: { + enabled: boolean + } } } diff --git a/server/core/lib/server-config-manager.ts b/server/core/lib/server-config-manager.ts index 72e4ac24f..88cbb8a10 100644 --- a/server/core/lib/server-config-manager.ts +++ b/server/core/lib/server-config-manager.ts @@ -193,7 +193,10 @@ class ServerConfigManager { } }, videoTranscription: { - enabled: CONFIG.VIDEO_TRANSCRIPTION.ENABLED + enabled: CONFIG.VIDEO_TRANSCRIPTION.ENABLED, + remoteRunners: { + enabled: CONFIG.VIDEO_TRANSCRIPTION.ENABLED && CONFIG.VIDEO_TRANSCRIPTION.REMOTE_RUNNERS.ENABLED + } }, import: { videos: {