From 69c36e63339f1086df21652b0b44108a78829337 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 23 Sep 2025 08:49:11 +0200 Subject: [PATCH] refactor(server): update dispatch messages and streamline data synchronization --- app/Livewire/Server/Show.php | 6 +++--- resources/views/livewire/server/show.blade.php | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php index 473e0b60e..db4dc9b88 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 Component public 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.php index c463b1b74..29eacf627 100644 --- a/resources/views/livewire/server/show.blade.php +++ b/resources/views/livewire/server/show.blade.php @@ -239,7 +239,6 @@ @endif
-
@@ -267,9 +266,7 @@ $wire.set('sentinelCustomDockerImage', this.customImage); } }" x-init="$wire.set('sentinelCustomDockerImage', customImage)"> -