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
fix: should be able to reset labels in read-only mode with manual click
Andras Bacsaic338eef57bbd
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 9af0c8d8d6..f1575a01f0 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -274,10 +274,10 @@ class General extends Component}}- public function resetDefaultLabels()+ public function resetDefaultLabels($manualReset = false){try {- if ($this->application->settings->is_container_label_readonly_enabled) {+ if ($this->application->settings->is_container_label_readonly_enabled && ! $manualReset) {return;}$this->customLabels = str(implode('|coolify|', generateLabelsApplication($this->application)))->replace('|coolify|', "\n");diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.phpindex 6c93d25b74..b30078237e 100644--- a/resources/views/livewire/project/application/general.blade.php+++ b/resources/views/livewire/project/application/general.blade.php@@ -312,7 +312,7 @@id="application.settings.is_container_label_readonly_enabled" instantSave></x-forms.checkbox></div><x-modal-confirmation title="Confirm Labels Reset to Coolify Defaults?"- buttonTitle="Reset Labels to Coolify Defaults" buttonFullWidth submitAction="resetDefaultLabels"+ buttonTitle="Reset Labels to Defaults" buttonFullWidth submitAction="resetDefaultLabels(true)":actions="['All your custom proxy labels will be lost.','Proxy labels (traefik, caddy, etc) will be reset to the coolify defaults.',