lasthourcloud/app/Livewire/Project/Shared/ScheduledTask/Executions.php
2024-06-10 20:43:34 +00:00

30 lines
485 B
PHP

<?php
namespace App\Livewire\Project\Shared\ScheduledTask;
use Livewire\Component;
class Executions extends Component
{
public $executions = [];
public $selectedKey;
public function getListeners()
{
return [
'selectTask',
];
}
public function selectTask($key): void
{
if ($key == $this->selectedKey) {
$this->selectedKey = null;
return;
}
$this->selectedKey = $key;
}
}