diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 572a5621..c6c83c4e 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -333,6 +333,9 @@ class Base(Configuration): "transcript": values.DictValue( {}, environ_name="FRONTEND_TRANSCRIPT", environ_prefix=None ), + "manifest_link": values.Value( + None, environ_name="FRONTEND_MANIFEST_LINK", environ_prefix=None + ), } # Mail diff --git a/src/frontend/src/api/useConfig.ts b/src/frontend/src/api/useConfig.ts index 02b6a3cf..2a32097a 100644 --- a/src/frontend/src/api/useConfig.ts +++ b/src/frontend/src/api/useConfig.ts @@ -30,6 +30,7 @@ export interface ApiConfig { available_modes?: RecordingMode[] expiration_days?: number } + manifest_link?: string } const fetchConfig = (): Promise => { diff --git a/src/frontend/src/features/home/components/MoreLink.tsx b/src/frontend/src/features/home/components/MoreLink.tsx index 013f788f..7b5db650 100644 --- a/src/frontend/src/features/home/components/MoreLink.tsx +++ b/src/frontend/src/features/home/components/MoreLink.tsx @@ -2,17 +2,16 @@ import { A, Text } from '@/primitives' import { useTranslation } from 'react-i18next' import { useConfig } from '@/api/useConfig' -const MANIFEST_LINK = - 'https://docs.numerique.gouv.fr/docs/1ef86abf-f7e0-46ce-b6c7-8be8b8af4c3d/' - export const MoreLink = () => { const { t } = useTranslation('home') const { data } = useConfig() + if (!data?.manifest_link) return + return (