From b5da594b5e89dfbb468c3af1fb734d82e61dfdd4 Mon Sep 17 00:00:00 2001 From: Kristina Date: Fri, 16 May 2025 11:17:10 +0400 Subject: [PATCH] Fix communication api config (#8955) Signed-off-by: Kristina Fefelova --- desktop/src/ui/platform.ts | 2 +- desktop/src/ui/types.ts | 2 +- dev/prod/public/config.json | 2 +- dev/prod/src/platform.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop/src/ui/platform.ts b/desktop/src/ui/platform.ts index 489aee08fd..cf307c2060 100644 --- a/desktop/src/ui/platform.ts +++ b/desktop/src/ui/platform.ts @@ -270,7 +270,7 @@ export async function configurePlatform (): Promise { setMetadata(github.metadata.GithubClientID, config.GITHUB_CLIENTID ?? '') setMetadata(github.metadata.GithubURL, config.GITHUB_URL ?? '') - setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED) + setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED === 'true') if (config.MODEL_VERSION != null) { console.log('Minimal Model version requirement', config.MODEL_VERSION) diff --git a/desktop/src/ui/types.ts b/desktop/src/ui/types.ts index dd8bca81c3..04ca2bf2ae 100644 --- a/desktop/src/ui/types.ts +++ b/desktop/src/ui/types.ts @@ -44,7 +44,7 @@ export interface Config { CALDAV_SERVER_URL?: string EXPORT_URL?: string MAIL_URL?: string - COMMUNICATION_API_ENABLED?: boolean + COMMUNICATION_API_ENABLED?: string } export interface Branding { diff --git a/dev/prod/public/config.json b/dev/prod/public/config.json index 590687fcaa..9f72ba38d4 100644 --- a/dev/prod/public/config.json +++ b/dev/prod/public/config.json @@ -25,5 +25,5 @@ "PUBLIC_SCHEDULE_URL": "http://huly.local:8060", "CALDAV_SERVER_URL": "http://huly.local:9070", "EXPORT_URL": "http://huly.local:4009", - "COMMUNICATION_API_ENABLED": true + "COMMUNICATION_API_ENABLED": "true" } diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index f7a7aa27aa..945bfba6cf 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -193,7 +193,7 @@ export interface Config { CALDAV_SERVER_URL?: string EXPORT_URL?: string MAIL_URL?: string, - COMMUNICATION_API_ENABLED?: boolean + COMMUNICATION_API_ENABLED?: string } export interface Branding { @@ -442,7 +442,7 @@ export async function configurePlatform() { setMetadata(presentation.metadata.MailUrl, config.MAIL_URL) setMetadata(recorder.metadata.StreamUrl, config.STREAM_URL) setMetadata(textEditor.metadata.Collaborator, config.COLLABORATOR) - setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED) + setMetadata(communication.metadata.Enabled, config.COMMUNICATION_API_ENABLED === 'true') if (config.MODEL_VERSION != null) { console.log('Minimal Model version requirement', config.MODEL_VERSION)