26 lines
603 B
PHP
26 lines
603 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use LivewireUI\Modal\ModalComponent;
|
|
|
|
/**
|
|
* Confirmation before a customer signs every other browser out (R23).
|
|
*
|
|
* Mutates nothing. Sessions::endOthers() still does the work, with its own
|
|
* identity resolution — the check stays at the one place that already had it.
|
|
*/
|
|
class ConfirmEndOtherSessions extends ModalComponent
|
|
{
|
|
public function confirm(): void
|
|
{
|
|
$this->dispatch('sessions-end-others-confirmed');
|
|
$this->closeModal();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.confirm-end-other-sessions');
|
|
}
|
|
}
|