From 491229a1b09fb3f3878e20083bdf17609ab24ea7 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Thu, 10 Oct 2024 08:34:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AB=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/settings/Settings.tsx | 9 +++++++- py/ai.py | 34 +++++++++++----------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/app/components/settings/Settings.tsx b/app/components/settings/Settings.tsx index d0f769b..87b05b6 100644 --- a/app/components/settings/Settings.tsx +++ b/app/components/settings/Settings.tsx @@ -12,9 +12,11 @@ import PrivacySettings from './PrivacySettings'; import FontSizeSetting from './FontSize'; import OpenSourceModeToggle from './OpenSourceToggle'; import { + changeHistory, changeSettings, createAccount, deleteAccount, + getHistory, } from '../../backend/database'; import ThemeDropdown from './DropDownTheme'; @@ -372,7 +374,11 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = ( localStorage.setItem("currentEmail", useEmail) alert('Account successfully changed!') window.location.reload() + } else { + alert("failed to send settings") } + } else { + alert("failed to create account") } } }; @@ -409,7 +415,7 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = ( checked={myBoolean} setChecked={setMyBoolean} /> - void; accountName: string }> = ( onClick={handleLogout} // Function to call on click className="update-credentials-button" // Custom styling class /> +

WARNING: Will delete your chat history.