feat(chat): botón cerrar sesión en el header del chat
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
5f06c27869
commit
9d0940873d
@@ -137,6 +137,27 @@ class PublicChat extends Component
|
||||
$this->paso = 'email';
|
||||
}
|
||||
|
||||
public function cerrarSesion(): void
|
||||
{
|
||||
$this->email = '';
|
||||
$this->nombreRegistro = '';
|
||||
$this->cedulaRegistro = '';
|
||||
$this->celularRegistro = '';
|
||||
$this->codigoIngresado = '';
|
||||
$this->emailMascarado = null;
|
||||
$this->contactIdPending = null;
|
||||
$this->userId = null;
|
||||
$this->nombreUsuario = null;
|
||||
$this->saldoUsuario = null;
|
||||
$this->convId = null;
|
||||
$this->estadoConv = 'bot';
|
||||
$this->flujo = '';
|
||||
$this->flujoData = [];
|
||||
$this->mensajes = [];
|
||||
$this->input = '';
|
||||
$this->paso = 'email';
|
||||
}
|
||||
|
||||
// ─────────────────────────────────────────────────────────
|
||||
// Paso 2b: verificar código OTP
|
||||
// ─────────────────────────────────────────────────────────
|
||||
|
||||
@@ -188,6 +188,13 @@
|
||||
<p class="text-white text-sm font-bold">${{ number_format($saldoUsuario) }}</p>
|
||||
</div>
|
||||
@endif
|
||||
{{-- Cerrar sesión --}}
|
||||
<button wire:click="cerrarSesion" title="Cerrar sesión"
|
||||
class="flex-shrink-0 ml-1 p-2 rounded-full hover:bg-white/10 transition text-[#8696a0] hover:text-red-400">
|
||||
<svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user