An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat(container): add updatedSelectedContainer method to connect to non-default containers and update wire:model for improved reactivity
Andras Bacsaief91e43384f5
diff --git a/app/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.phpindex ca1597d4f0..9003e093af 100644--- a/app/Livewire/Project/Shared/ExecuteContainerCommand.php+++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php@@ -137,6 +137,13 @@ class ExecuteContainerCommand extends Component}}+ public function updatedSelectedContainer()+ {+ if ($this->selected_container !== 'default') {+ $this->connectToContainer();+ }+ }+#[On('connectToServer')]public function connectToServer(){diff --git a/resources/views/livewire/project/shared/execute-container-command.blade.php b/resources/views/livewire/project/shared/execute-container-command.blade.phpindex c04af1dd52..71d253103f 100644--- a/resources/views/livewire/project/shared/execute-container-command.blade.php+++ b/resources/views/livewire/project/shared/execute-container-command.blade.php@@ -21,7 +21,7 @@<div>No containers are running or terminal access is disabled on this server.</div>@else<form class="w-full flex gap-2 items-end" wire:submit="$dispatchSelf('connectToContainer')">- <x-forms.select label="Container" id="container" required wire:model="selected_container">+ <x-forms.select label="Container" id="container" required wire:model.live="selected_container">@foreach ($containers as $container)@if ($loop->first)<option disabled value="default">Select a container</option>