diff --git a/components/app/windows/settings.vue b/components/app/windows/settings.vue index 4f741e8..0e3c6bb 100644 --- a/components/app/windows/settings.vue +++ b/components/app/windows/settings.vue @@ -18,6 +18,7 @@ const user = ref(""); const enterFirstName = ref(); const isLoggedIn = ref(false); const useremail = ref(); +const sendSuccess = ref(false); const userData = ref({ userAccount: "", firstName: "", @@ -83,11 +84,19 @@ const submitCustomApiKey = async () => { if (response.error) { console.error("Error updating user data:", response.error); } + sendSuccessSystem(); } catch (error) { console.error("Failed to submit change:", error); } }; +const sendSuccessSystem = () => { + sendSuccess.value = true; + setTimeout(() => { + sendSuccess.value = false; + }, 3000); +}; + const checkValidApiKey = () => { const apiKey = customApiKey.value; if (!apiKey) { @@ -110,6 +119,7 @@ const deleteAccount = async () => { method: "DELETE", }); const res = await req.json(); + sendSuccessSystem(); console.log(res); }; @@ -218,6 +228,13 @@ const submitUserPassword = async () => { {{ t("settings.loginButton") }} +