Skip to content

Commit

Permalink
Commit Lars' suggestion handling turning this on or off. Javascript's…
Browse files Browse the repository at this point in the history
… falsey stuff tripped me up
  • Loading branch information
gregorydlogan committed Jun 12, 2024
1 parent 4b08c32 commit e2fcbba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<footer id="main-footer">
Expand All @@ -40,7 +41,7 @@ const Footer: React.FC = () => {
)}
</li>
)}
{!!orgProperties && !!orgProperties["admin.display_about"] && (
{aboutEnabled && (
<>
<li><Link to="/about/imprint">{t("ABOUT.IMPRINT")}</Link></li>
<li><Link to="/about/privacy">{t("ABOUT.PRIVACY")}</Link></li>
Expand Down

0 comments on commit e2fcbba

Please sign in to comment.