From 4b08c323aef8344b9ded00d55ff52bd09817bc1a Mon Sep 17 00:00:00 2001 From: Greg Logan Date: Mon, 10 Jun 2024 22:05:44 -0600 Subject: [PATCH 1/2] Fixing config key being used to turn off the imprint and privacy policy links --- src/components/Footer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index ee7774ba28..de264430b0 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -40,7 +40,7 @@ const Footer: React.FC = () => { )} )} - {!!orgProperties && !!orgProperties["org.opencastproject.admin.display_about"] && ( + {!!orgProperties && !!orgProperties["admin.display_about"] && ( <>
  • {t("ABOUT.IMPRINT")}
  • {t("ABOUT.PRIVACY")}
  • From e2fcbbadc745185e6e46509100cd5bb5e0f56042 Mon Sep 17 00:00:00 2001 From: Greg Logan Date: Tue, 11 Jun 2024 21:03:32 -0600 Subject: [PATCH 2/2] Commit Lars' suggestion handling turning this on or off. Javascript's falsey stuff tripped me up --- src/components/Footer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index de264430b0..1671dc6f57 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -22,6 +22,7 @@ const Footer: React.FC = () => { const lastModified = user?.ocVersion?.['last-modified'] ? new Date(user.ocVersion['last-modified']).toISOString().substring(0, 10) : 'unknown'; + const aboutEnabled = orgProperties['org.opencastproject.admin.display_about']?.toLowerCase() === 'true'; return (