Profile enhancements
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user