From c5afade0cf2537f34f37204cc8dcb1f71939a5f9 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 17 Dec 2024 21:28:29 +0200 Subject: [PATCH] add warning to logout --- src/App.tsx | 9 +++++++-- src/components/Chat/AdminSpaceInner.tsx | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 7ef65ef..dcd42ca 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1068,6 +1068,11 @@ function App() { message: "Your settings have changed. If you logout you will lose your changes. Click on the save button in the header to keep your changed settings.", }); + } else { + await showUnsavedChanges({ + message: + "Are you sure you would like to logout?", + }); } window .sendMessage("logout", {}) @@ -2933,10 +2938,10 @@ await showInfo({ - - diff --git a/src/components/Chat/AdminSpaceInner.tsx b/src/components/Chat/AdminSpaceInner.tsx index 41d7c38..381302d 100644 --- a/src/components/Chat/AdminSpaceInner.tsx +++ b/src/components/Chat/AdminSpaceInner.tsx @@ -199,7 +199,7 @@ export const AdminSpaceInner = ({ {` by ${groupSecretKeyPublishDetails?.name}`} )} -