fix(terminal): now it should work

This commit is contained in:
Andras Bacsai
2025-06-14 13:00:16 +02:00
parent 2a419ab8da
commit 64dd648b3f
2 changed files with 2 additions and 30 deletions

View File

@@ -27,8 +27,6 @@ class ExecuteContainerCommand extends Component
public Collection $servers;
public bool $hasShell = true;
public bool $containersLoaded = false;
public bool $autoConnectAttempted = false;
@@ -250,7 +248,6 @@ class ExecuteContainerCommand extends Component
if (! $this->server->isTerminalEnabled()) {
throw new \RuntimeException('Terminal access is disabled on this server.');
}
$this->hasShell = true;
$this->isConnecting = true;
$this->connectionStatus = 'Establishing connection to server terminal...';
$this->dispatch(
@@ -309,14 +306,6 @@ class ExecuteContainerCommand extends Component
throw new \RuntimeException('Server ownership verification failed.');
}
$this->hasShell = $this->checkShellAvailability($server, data_get($container, 'container.Names'));
if (! $this->hasShell) {
$this->isConnecting = false;
$this->connectionStatus = 'Shell not available in container.';
return;
}
$this->isConnecting = true;
$this->connectionStatus = 'Establishing connection to container terminal...';
$this->dispatch(