From 072e3c131ec6b4e12be45274b2062e6192b045cd Mon Sep 17 00:00:00 2001
From: limes
Date: Sat, 29 Aug 2026 23:46:33 +0200
Subject: [PATCH] fix: requested changes
---
.docker/docker-compose.yml | 2 +-
src/components/UpdateEmailModal.vue | 54 +++++++++++++++++------
src/locales/en_US.json | 3 +-
src/pages/account/verify-email.client.vue | 15 +++----
4 files changed, 50 insertions(+), 24 deletions(-)
diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml
index 885cb56..d69973d 100644
--- a/.docker/docker-compose.yml
+++ b/.docker/docker-compose.yml
@@ -67,7 +67,7 @@ services:
volumes:
- "./assets/garage-init.sh:/etc/init.sh"
account:
- image: ghcr.io/pretendonetwork/account:sha-81cbacf
+ image: ghcr.io/pretendonetwork/account:sha-34dc075
restart: unless-stopped
networks:
- net
diff --git a/src/components/UpdateEmailModal.vue b/src/components/UpdateEmailModal.vue
index d3afffc..b4bddb3 100644
--- a/src/components/UpdateEmailModal.vue
+++ b/src/components/UpdateEmailModal.vue
@@ -5,6 +5,16 @@ import type { ApiAccountEmailUpdateRequest, GetApiAuthMe } from '~~/shared/api-t
const toasts = useToasts();
const open = defineModel();
+const updateOpen = ref(false);
+const verifyOpen = ref(false);
+
+watch(updateOpen, () => {
+ open.value = updateOpen.value;
+});
+watch(verifyOpen, () => {
+ open.value = verifyOpen.value;
+});
+
const newEmail = ref('');
const { profile } = defineProps<{
@@ -19,11 +29,11 @@ const {
execute: executeUpdateEmail,
isLoading: isLoadingUpdateEmail
} = useAsync({
- async handler() {
+ async handler(body: ApiAccountEmailUpdateRequest) {
await apiFetch('/api/account/update-email', {
method: 'PATCH',
body: {
- email: newEmail.value
+ email: body.email
} satisfies ApiAccountEmailUpdateRequest
});
@@ -47,8 +57,7 @@ const {
@@ -89,7 +98,9 @@ const {
@@ -131,11 +142,16 @@ const {
isLoadingUpdateEmail
}"
:disabled="isLoadingUpdateEmail"
- @click="executeUpdateEmail"
+ @click="() => executeUpdateEmail({
+ email: profile.emailAddress
+ })"
>
- {{
- $t("account.settings.unverifiedEmailModal.resend")
- }}
+
+
+ {{
+ $t("account.settings.unverifiedEmailModal.resend")
+ }}
+
@@ -149,9 +165,14 @@ const {
-
- {{ $t('account.settings.verify_email') }}
-
+
+
+ {{ $t('account.settings.verify_email_notice') }}
+
+
+ {{ $t('account.settings.verify_email_button') }}
+
+
diff --git a/src/locales/en_US.json b/src/locales/en_US.json
index a1b2c79..ee9de5a 100644
--- a/src/locales/en_US.json
+++ b/src/locales/en_US.json
@@ -220,7 +220,8 @@
"update": "Update",
"unverified_email": "Unverified",
"verified_email": "Verified",
- "verify_email": "Verify email",
+ "verify_email_notice": "You haven't verified your email address yet.",
+ "verify_email_button": "Verify now",
"settingCards": {
"userSettings": "User settings",
"profile": "Profile",
diff --git a/src/pages/account/verify-email.client.vue b/src/pages/account/verify-email.client.vue
index 15484d4..270c183 100644
--- a/src/pages/account/verify-email.client.vue
+++ b/src/pages/account/verify-email.client.vue
@@ -27,19 +27,15 @@ const {
}
});
-await callOnce(async () => {
- await executeVerifyEmail();
+callOnce(() => {
+ executeVerifyEmail();
});
-
@@ -73,6 +69,9 @@ await callOnce(async () => {
width: fit-content;
overflow: hidden;
}
+.account-form-wrapper.loading {
+ justify-content: center;
+}
.title {
font-size: 4rem;
margin-bottom: 0;