Enhance terminal connection handling in execute-container-command view

This commit is contained in:
Andras Bacsai
2025-06-14 12:42:14 +02:00
parent b70a9a6d47
commit 15472aa0b7

View File

@@ -33,22 +33,19 @@
</div>
</div>
</div>
@else
@endif
@if ($type === 'server')
@if ($server->isTerminalEnabled())
<form class="w-full flex gap-2 items-start justify-start"
wire:submit="$dispatchSelf('connectToServer')">
<form class="w-full flex gap-2 items-start justify-start" wire:submit="$dispatchSelf('connectToServer')">
<h2 class="pb-4">Terminal</h2>
<x-forms.button type="submit" :disabled="$isConnecting">
Reconnect
</x-forms.button>
</form>
{{-- Loading indicator for all connection states --}}
@if (!$containersLoaded || $isConnecting || $connectionStatus)
<span class="text-sm">{{ $connectionStatus }}</span>
@endif
</form>
<div class="mx-auto w-full">
<livewire:project.shared.terminal wire:key="terminal-{{ $this->getId() }}-server" />
</div>
@@ -100,7 +97,6 @@
</div>
@endif
@endif
@endif
@script
<script>