(
page: "sds",
lines: [
{
- textLeft: `neue SDS-Nachricht`,
+ textLeft: `SDS-Nachricht`,
style: { fontWeight: "bold" },
textSize: "2",
},
diff --git a/apps/dispatch/app/api/livekit-participant/route.ts b/apps/dispatch/app/api/livekit-participant/route.ts
index e337f025..2cf644ee 100644
--- a/apps/dispatch/app/api/livekit-participant/route.ts
+++ b/apps/dispatch/app/api/livekit-participant/route.ts
@@ -13,9 +13,6 @@ export const GET = async (request: NextRequest) => {
},
});
- if (!user || !user.permissions.includes("AUDIO_ADMIN"))
- return Response.json({ message: "Missing permissions" }, { status: 401 });
-
const rooms = await RoomManager.listRooms();
const roomsWithParticipants = rooms.map(async (room) => {
diff --git a/apps/dispatch/app/pilot/_components/mrt/MRT_MESSAGE.png b/apps/dispatch/app/pilot/_components/mrt/MRT_MESSAGE.png
new file mode 100644
index 00000000..7bf6a2d4
Binary files /dev/null and b/apps/dispatch/app/pilot/_components/mrt/MRT_MESSAGE.png differ
diff --git a/apps/dispatch/app/pilot/_components/mrt/Mrt.tsx b/apps/dispatch/app/pilot/_components/mrt/Mrt.tsx
index 52fc1a4a..5d271921 100644
--- a/apps/dispatch/app/pilot/_components/mrt/Mrt.tsx
+++ b/apps/dispatch/app/pilot/_components/mrt/Mrt.tsx
@@ -1,5 +1,6 @@
import { CSSProperties } from "react";
import MrtImage from "./MRT.png";
+import MrtMessageImage from "./MRT_MESSAGE.png";
import { useButtons } from "./useButtons";
import { useSounds } from "./useSounds";
import "./mrt.css";
@@ -18,6 +19,7 @@ const MRT_DISPLAYLINE_STYLES: CSSProperties = {
};
export interface DisplayLineProps {
+ lineStyle?: CSSProperties;
style?: CSSProperties;
textLeft?: string;
textMid?: string;
@@ -31,12 +33,14 @@ const DisplayLine = ({
textMid,
textRight,
textSize,
+ lineStyle,
}: DisplayLineProps) => {
const INNER_TEXT_PARTS: CSSProperties = {
fontFamily: "Melder",
flex: "1",
flexBasis: "auto",
overflowWrap: "break-word",
+ ...lineStyle,
};
return (
@@ -46,13 +50,12 @@ const DisplayLine = ({
fontFamily: "Famirids",
display: "flex",
flexWrap: "wrap",
+
...style,
}}
>
{textLeft}
-
- {textMid}
-
+ {textMid}
{textRight}
);
@@ -61,7 +64,7 @@ const DisplayLine = ({
export const Mrt = () => {
useSounds();
const { handleButton } = useButtons();
- const lines = useMrtStore((state) => state.lines);
+ const { lines, page } = useMrtStore((state) => state);
return (
{
maxHeight: "100%",
maxWidth: "100%",
color: "white",
- gridTemplateColumns:
- "21.83% 4.43% 24.42% 18.08% 5.93% 1.98% 6.00% 1.69% 6.00% 9.35%",
- gridTemplateRows:
- "21.58% 11.87% 3.55% 5.00% 6.84% 0.53% 3.03% 11.84% 3.55% 11.84% 20.39%",
+ gridTemplateColumns: "21.83% 4.43% 24.42% 18.08% 5.93% 1.98% 6.00% 1.69% 6.00% 9.35%",
+ gridTemplateRows: "21.58% 11.87% 3.55% 5.00% 6.84% 0.53% 3.03% 11.84% 3.55% 11.84% 20.39%",
}}
>
-
+ )}
+ {page === "sds" && (
+
+ )}
+
+