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
chore: Add validation to prevent selecting 'default' server or container in RunCommand.php
Andras Bacsai5818c9cf6bfe
diff --git a/app/Livewire/RunCommand.php b/app/Livewire/RunCommand.phpindex 290618befe..4eae773e14 100644--- a/app/Livewire/RunCommand.php+++ b/app/Livewire/RunCommand.php@@ -90,6 +90,12 @@ class RunCommand extends Component#[On('connectToContainer')]public function connectToContainer(){+ if ($this->selected_uuid === 'default') {+ $this->dispatch('error', 'Please select a server or a container.');++ return;+ }+$container = collect($this->containers)->firstWhere('uuid', $this->selected_uuid);$this->dispatch('send-terminal-command',