- 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
20 lines
395 B
Vue
20 lines
395 B
Vue
<template>
|
|
<UButton
|
|
color="success"
|
|
size="lg"
|
|
@click="handleClick"
|
|
>
|
|
<template #leading>
|
|
<UIcon name="i-heroicons-arrow-right-end-on-rectangle" />
|
|
</template>
|
|
Iniciar Sesión
|
|
</UButton>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const handleClick = () => {
|
|
// Recargar la página para forzar redirect de Authentik al login
|
|
window.location.reload()
|
|
}
|
|
</script>
|