Profile enhancements
This commit is contained in:
@@ -185,7 +185,7 @@
|
||||
</button>
|
||||
<NuxtLink
|
||||
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
|
||||
</NuxtLink>
|
||||
@@ -296,8 +296,10 @@ async function handleSubmit() {
|
||||
confirm: ''
|
||||
}
|
||||
|
||||
// Reload profile data
|
||||
await loadProfile()
|
||||
// Redirect to home page after successful save
|
||||
setTimeout(() => {
|
||||
navigateTo('/')
|
||||
}, 1000)
|
||||
} catch (e: any) {
|
||||
error.value = e.data?.message || 'Failed to update profile'
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user