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(server): update dispatch messages and streamline data synchronization
Andras Bacsai69c36e63339f
diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.phpindex 473e0b60e3..db4dc9b886 100644--- a/app/Livewire/Server/Show.php+++ b/app/Livewire/Server/Show.php@@ -271,7 +271,7 @@ class Show extends Component$this->authorize('manageSentinel', $this->server);$customImage = isDev() ? $this->sentinelCustomDockerImage : null;$this->server->restartSentinel($customImage);- $this->dispatch('success', 'Restarting Sentinel.');+ $this->dispatch('info', 'Restarting Sentinel.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -355,7 +355,7 @@ class Show extends Componentpublic function instantSave(){try {- $this->submit();+ $this->syncData(true);} catch (\Throwable $e) {return handleError($e, $this);}@@ -365,7 +365,7 @@ class Show extends Component{try {$this->syncData(true);- $this->dispatch('success', 'Server updated.');+ $this->dispatch('success', 'Server settings updated.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/resources/views/livewire/server/show.blade.php b/resources/views/livewire/server/show.blade.phpindex c463b1b741..29eacf6270 100644--- a/resources/views/livewire/server/show.blade.php+++ b/resources/views/livewire/server/show.blade.php@@ -239,7 +239,6 @@@endif</div><div class="flex flex-col gap-2">-<div class="w-96"><x-forms.checkbox canGate="update" :canResource="$server" wire:model.live="isSentinelEnabled"label="Enable Sentinel" />@@ -267,9 +266,7 @@$wire.set('sentinelCustomDockerImage', this.customImage);}}" x-init="$wire.set('sentinelCustomDockerImage', customImage)">- <x-forms.input- x-model="customImage"- @input.debounce.500ms="saveCustomImage()"+ <x-forms.input x-model="customImage" @input.debounce.500ms="saveCustomImage()"placeholder="e.g., sentinel:latest or myregistry/sentinel:dev"label="Custom Sentinel Docker Image (Dev Only)"helper="Override the default Sentinel Docker image for testing. Leave empty to use the default." />