From a27e4f41a6a464232493bb177934fadc379db324 Mon Sep 17 00:00:00 2001 From: padreug Date: Sun, 10 Aug 2025 23:04:45 +0200 Subject: [PATCH] feat: Enhance Logout Confirmation in Navbar and Dialog Component - Add a new state variable to manage the visibility of the Logout Confirmation dialog in Navbar.vue. - Update the LogoutConfirmDialog component to accept an isOpen prop and emit an update event for better control of its visibility. - Refactor the logout button in Navbar.vue to trigger the confirmation dialog, improving user experience by preventing accidental logouts. --- src/components/layout/Navbar.vue | 6 +++--- .../LogoutConfirmDialog/LogoutConfirmDialog.vue | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/components/layout/Navbar.vue b/src/components/layout/Navbar.vue index 72452a4..e6f8520 100644 --- a/src/components/layout/Navbar.vue +++ b/src/components/layout/Navbar.vue @@ -155,8 +155,8 @@ const handleLogout = async () => { Relay Hub Status - - + + Logout @@ -242,7 +242,7 @@ const handleLogout = async () => { Relay Hub Status - + Logout diff --git a/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue b/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue index 97e9b13..021b475 100644 --- a/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue +++ b/src/components/ui/LogoutConfirmDialog/LogoutConfirmDialog.vue @@ -1,5 +1,5 @@