From c309b5c8abd51fb009696c23713a763b513ed0b3 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Tue, 4 Jun 2024 19:53:32 +0200 Subject: [PATCH] Show build information This patch adds additional build information like the build date to the footer and also adds the explanation we had on the old interface what these values mean to the `title` attributes. This fixes #332 --- src/components/Footer.tsx | 12 ++++++++++-- .../adminui/languages/lang-en_US.json | 6 ++++++ src/slices/userInfoSlice.ts | 4 ++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 771e075335..ee7774ba28 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -19,6 +19,10 @@ const Footer: React.FC = () => { const user = useAppSelector(state => getUserInformation(state)); const orgProperties = useAppSelector(state => getOrgProperties(state)); + const lastModified = user?.ocVersion?.['last-modified'] + ? new Date(user.ocVersion['last-modified']).toISOString().substring(0, 10) + : 'unknown'; + return (