fix: make sure to reload window if app status changes
This commit is contained in:
@@ -9,6 +9,20 @@ use Livewire\Component;
|
|||||||
|
|
||||||
class Terminal extends 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')]
|
#[On('send-terminal-command')]
|
||||||
public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
|
public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user