Profile enhancements

This commit is contained in:
2025-10-06 19:00:18 -04:00
parent c7b8735a90
commit 730803a5c1

View File

@@ -185,7 +185,7 @@
</button> </button>
<NuxtLink <NuxtLink
to="/" to="/"
class="flex-1 px-4 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 text-center" class="flex-1 px-4 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 text-center flex items-center justify-center"
> >
Cancel Cancel
</NuxtLink> </NuxtLink>
@@ -296,8 +296,10 @@ async function handleSubmit() {
confirm: '' confirm: ''
} }
// Reload profile data // Redirect to home page after successful save
await loadProfile() setTimeout(() => {
navigateTo('/')
}, 1000)
} catch (e: any) { } catch (e: any) {
error.value = e.data?.message || 'Failed to update profile' error.value = e.data?.message || 'Failed to update profile'
} finally { } finally {