From cea632c47ab7831170ca87273c318be2394f8ffb Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Sat, 12 Jul 2025 00:48:48 -0700 Subject: [PATCH] Chat animation, Audio-Berechtigungsabfrage, Berechtigung Fehlermeldung --- apps/dispatch/app/(app)/dispatch/layout.tsx | 8 +++++++- apps/dispatch/app/(app)/pilot/layout.tsx | 8 +++++++- apps/dispatch/app/_components/left/Chat.tsx | 2 +- .../app/_components/navbar/Settings.tsx | 19 ++++++++++++++----- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/apps/dispatch/app/(app)/dispatch/layout.tsx b/apps/dispatch/app/(app)/dispatch/layout.tsx index 9ef4a9bc..bade8d8d 100644 --- a/apps/dispatch/app/(app)/dispatch/layout.tsx +++ b/apps/dispatch/app/(app)/dispatch/layout.tsx @@ -16,7 +16,13 @@ export default async function RootLayout({ const session = await getServerSession(); if (!session?.user.permissions.includes("DISPO")) - return ; + return ( + + ); return ( <> diff --git a/apps/dispatch/app/(app)/pilot/layout.tsx b/apps/dispatch/app/(app)/pilot/layout.tsx index c734eb8e..ab71548f 100644 --- a/apps/dispatch/app/(app)/pilot/layout.tsx +++ b/apps/dispatch/app/(app)/pilot/layout.tsx @@ -16,7 +16,13 @@ export default async function RootLayout({ const session = await getServerSession(); if (!session?.user.permissions.includes("PILOT")) - return ; + return ( + + ); return ( <> diff --git a/apps/dispatch/app/_components/left/Chat.tsx b/apps/dispatch/app/_components/left/Chat.tsx index 8f75105c..b62e4842 100644 --- a/apps/dispatch/app/_components/left/Chat.tsx +++ b/apps/dispatch/app/_components/left/Chat.tsx @@ -55,7 +55,7 @@ export const Chat = () => {
{Object.values(chats).some((c) => c.notification) && ( - + )}