fix: make sure to reload window if app status changes

This commit is contained in:
Andras Bacsai
2024-09-25 10:27:23 +02:00
parent bd2e1ad9fe
commit 59d2c9748a

View File

@@ -9,6 +9,20 @@ use Livewire\Component;
class Terminal extends Component
{
public function getListeners()
{
$teamId = auth()->user()->currentTeam()->id;
return [
"echo-private:team.{$teamId},ApplicationStatusChanged" => 'closeTerminal',
];
}
public function closeTerminal()
{
$this->dispatch('reloadWindow');
}
#[On('send-terminal-command')]
public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
{