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