Make 'Iniciar Sesión' button always visible alongside other buttons
All checks were successful
build-and-deploy / build (push) Successful in 56s
build-and-deploy / deploy (push) Successful in 3s

Change button layout to show all 4 buttons at the same time:
- Estado de Sesión (info/blue)
- Ver Perfil (primary/blue)
- Cerrar Sesión (error/red)
- Iniciar Sesión (success/green) - NEW: always visible

This allows users to force a re-authentication by clicking 'Iniciar
Sesión' even when already authenticated, triggering Authentik login flow.
This commit is contained in:
2025-10-13 02:02:45 -06:00
parent a132fdfbf8
commit 226fcc7c64

View File

@@ -1,7 +1,7 @@
<template>
<UCard class="w-full">
<div class="flex flex-wrap gap-3">
<!-- Botón de estado de sesión (siempre visible) -->
<!-- Botón de estado de sesión -->
<UButton
color="info"
size="lg"
@@ -14,8 +14,6 @@
Estado de Sesión
</UButton>
<!-- Botones cuando HAY sesión -->
<template v-if="isAuthenticated">
<!-- Botón de perfil -->
<UButton
color="primary"
@@ -40,12 +38,10 @@
</template>
Cerrar Sesión
</UButton>
</template>
<!-- Botón cuando NO hay sesión -->
<template v-else>
<!-- Botón de iniciar sesión (siempre visible) -->
<UButton
color="primary"
color="success"
size="lg"
@click="reloadPage"
>
@@ -54,7 +50,6 @@
</template>
Iniciar Sesión
</UButton>
</template>
</div>
</UCard>
</template>