From f752e5fa785c4d58a979ace82a1bf832017453bc Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:45:22 -0700 Subject: [PATCH] add outoclose modal when login time changed --- .../app/dispatch/_components/navbar/_components/Connection.tsx | 1 + .../app/pilot/_components/navbar/_components/Connection.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx b/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx index 103432e6..cdb98ab8 100644 --- a/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx +++ b/apps/dispatch/app/dispatch/_components/navbar/_components/Connection.tsx @@ -38,6 +38,7 @@ export const ConnectionBtn = () => { }, }); toast.success("Änderung gespeichert!"); + modalRef.current?.close(); }, 2000); setLogoffDebounce(timeout); diff --git a/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx b/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx index 55bdf536..42e9ca66 100644 --- a/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx +++ b/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx @@ -67,6 +67,7 @@ export const ConnectionBtn = () => { : null, }, }); + modalRef.current?.close(); toast.success("Änderung gespeichert!"); }, 2000);