lasthourcloud/app/Http/Livewire/PollActivity.php
Andras Bacsai 78c4344583 feat: add deployments as activity
fix: tests
refactor: remoteProcess
2023-03-29 12:27:02 +02:00

24 lines
452 B
PHP

<?php
namespace App\Http\Livewire;
use Livewire\Component;
class PollActivity extends Component
{
public $activity;
public $isKeepAliveOn = true;
public function polling()
{
$this->activity?->refresh();
if (data_get($this->activity, 'properties.exitCode') !== null) {
$this->isKeepAliveOn = false;
}
}
public function render()
{
return view('livewire.poll-activity');
}
}