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
Refactor dispatch event names to use snake_case in General.php, FileStorage.php, Storage.php, All.php, and Show.php
Andras Bacsaid62b471afebd
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.phpindex 0def08bb26..022a7b7107 100644--- a/app/Livewire/Project/Application/General.php+++ b/app/Livewire/Project/Application/General.php@@ -186,7 +186,7 @@ class General extends Component}$this->dispatch('success', 'Docker compose file loaded.');$this->dispatch('compose_loaded');- $this->dispatch('refreshStorages');+ $this->dispatch('refresh_storages');} catch (\Throwable $e) {$this->application->docker_compose_location = $this->initialDockerComposeLocation;$this->application->docker_compose_pr_location = $this->initialDockerComposePrLocation;diff --git a/app/Livewire/Project/Service/FileStorage.php b/app/Livewire/Project/Service/FileStorage.phpindex c26e195541..1703caf8f7 100644--- a/app/Livewire/Project/Service/FileStorage.php+++ b/app/Livewire/Project/Service/FileStorage.php@@ -44,7 +44,7 @@ class FileStorage extends Component} catch (\Throwable $e) {return handleError($e, $this);} finally {- $this->dispatch('storagesChanged');+ $this->dispatch('refresh_storages');}}public function convertToFile() {@@ -57,7 +57,7 @@ class FileStorage extends Component} catch (\Throwable $e) {return handleError($e, $this);} finally {- $this->dispatch('storagesChanged');+ $this->dispatch('refresh_storages');}}public function delete() {@@ -68,7 +68,7 @@ class FileStorage extends Component} catch (\Throwable $e) {return handleError($e, $this);} finally {- $this->dispatch('storagesChanged');+ $this->dispatch('refresh_storages');}}public function submit()diff --git a/app/Livewire/Project/Service/Storage.php b/app/Livewire/Project/Service/Storage.phpindex 77df92c6f8..1d40f17412 100644--- a/app/Livewire/Project/Service/Storage.php+++ b/app/Livewire/Project/Service/Storage.php@@ -12,7 +12,7 @@ class Storage extends Component{return ['addNewVolume',- 'storagesChanged'=> '$refresh'+ 'refresh_storages' => '$refresh',];}public function addNewVolume($data)@@ -28,7 +28,7 @@ class Storage extends Component$this->resource->refresh();$this->dispatch('success', 'Storage added successfully');$this->dispatch('clearAddStorage');- $this->dispatch('refreshStorages');+ $this->dispatch('refresh_storages');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Shared/Storages/All.php b/app/Livewire/Project/Shared/Storages/All.phpindex 18060da2a0..14fa9b7b0b 100644--- a/app/Livewire/Project/Shared/Storages/All.php+++ b/app/Livewire/Project/Shared/Storages/All.php@@ -7,10 +7,5 @@ use Livewire\Component;class All extends Component{public $resource;- protected $listeners = ['refreshStorages', 'storagesChanged' => '$refresh'];-- public function refreshStorages()- {- $this->resource->refresh();- }+ protected $listeners = ['refresh_storages' => '$refresh'];}diff --git a/app/Livewire/Project/Shared/Storages/Show.php b/app/Livewire/Project/Shared/Storages/Show.phpindex 0f65aa91e6..5e35b796ae 100644--- a/app/Livewire/Project/Shared/Storages/Show.php+++ b/app/Livewire/Project/Shared/Storages/Show.php@@ -39,6 +39,6 @@ class Show extends Componentpublic function delete(){$this->storage->delete();- $this->dispatch('refreshStorages');+ $this->dispatch('refresh_storages');}}