- Remove StatusBadges component (badges for authenticated, connected, groups) - Remove ActionButtons component - Create individual button components: - SessionStatusButton: handles session status check - ProfileButton: navigates to user profile - LogoutButton: handles user logout - LoginButton: reloads page to trigger login - Update app.vue to use new individual button components - Improve code quality with better component separation and reusability
21 lines
334 B
Vue
21 lines
334 B
Vue
<template>
|
|
<UButton
|
|
color="primary"
|
|
size="lg"
|
|
@click="handleClick"
|
|
>
|
|
<template #leading>
|
|
<UIcon name="i-heroicons-user-circle" />
|
|
</template>
|
|
Ver Perfil
|
|
</UButton>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const { goToProfile } = useAuthentik()
|
|
|
|
const handleClick = () => {
|
|
goToProfile()
|
|
}
|
|
</script>
|