From 8a7d5934c6000e81e01c49f619a5b0388de757dc Mon Sep 17 00:00:00 2001 From: potts99 Date: Wed, 6 Dec 2023 01:43:45 +0000 Subject: [PATCH] add version badge --- apps/api/src/controllers/auth.ts | 1 + apps/client/layouts/newLayout.tsx | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index bfd4497b6..3a5875017 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -434,6 +434,7 @@ export function authRoutes(fastify: FastifyInstance) { ticket_comments: user!.notify_ticket_comments, ticket_assigned: user!.notify_ticket_assigned, sso_status: config!.sso_active, + version: config!.client_version, notifcations, }; diff --git a/apps/client/layouts/newLayout.tsx b/apps/client/layouts/newLayout.tsx index 70eb4cf33..d17e0f06d 100644 --- a/apps/client/layouts/newLayout.tsx +++ b/apps/client/layouts/newLayout.tsx @@ -471,6 +471,7 @@ export default function NewLayout({ children }: any) { alt="Buy Me a Coffee at ko-fi.com" /> */} + {user.isAdmin && ( -
+
+
+ + + Version {user.version} + + +
{/*
{ @@ -544,7 +552,7 @@ export default function NewLayout({ children }: any) {
*/}
- +