We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd2e1ad commit 59d2c97Copy full SHA for 59d2c97
app/Livewire/Project/Shared/Terminal.php
@@ -9,6 +9,20 @@
9
10
class Terminal extends Component
11
{
12
+ public function getListeners()
13
+ {
14
+ $teamId = auth()->user()->currentTeam()->id;
15
+
16
+ return [
17
+ "echo-private:team.{$teamId},ApplicationStatusChanged" => 'closeTerminal',
18
+ ];
19
+ }
20
21
+ public function closeTerminal()
22
23
+ $this->dispatch('reloadWindow');
24
25
26
#[On('send-terminal-command')]
27
public function sendTerminalCommand($isContainer, $identifier, $serverUuid)
28
0 commit comments