diff --git a/apps/dispatch/app/_components/map/BaseMaps.tsx b/apps/dispatch/app/_components/map/BaseMaps.tsx index 13b95956..6c377602 100644 --- a/apps/dispatch/app/_components/map/BaseMaps.tsx +++ b/apps/dispatch/app/_components/map/BaseMaps.tsx @@ -314,7 +314,7 @@ export const BaseMaps = () => { return ( - + diff --git a/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx b/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx index 5023e6ab..c25f4581 100644 --- a/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx +++ b/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx @@ -2,6 +2,7 @@ import { useSession } from "next-auth/react"; import { useDispatchConnectionStore } from "../../../../_store/dispatch/connectionStore"; import { useRef, useState } from "react"; +import { toast } from "react-hot-toast"; export const ConnectionBtn = () => { const modalRef = useRef(null); @@ -10,6 +11,7 @@ export const ConnectionBtn = () => { logoffTime: "", selectedZone: "LST_01", }); + const [logoffDebounce, setLogoffDebounce] = useState(null); const session = useSession(); const uid = session.data?.user?.id; if (!uid) return null; @@ -22,14 +24,14 @@ export const ConnectionBtn = () => { {connection.status == "connected" ? ( ) : ( )} @@ -50,10 +50,7 @@ export const ConnectionBtn = () => {
{connection.status == "connected" ? (

- Verbunden als{" "} - - <{connection.selectedZone}> - + Verbunden als <{connection.selectedZone}>

) : (

Als Disponent anmelden

@@ -62,26 +59,30 @@ export const ConnectionBtn = () => { {connection.status == "disconnected" && ( -

- Du kannst diese Zeit später noch anpassen. -

+

Du kannst diese Zeit später noch anpassen.

)}
- + {connection.status == "connected" ? ( ) : ( + {connection.status == "connected" ? ( ) : (