diff --git a/app/Livewire/Server/Sentinel.php b/app/Livewire/Server/Sentinel.php index 20135f3c9..cdcdc71fc 100644 --- a/app/Livewire/Server/Sentinel.php +++ b/app/Livewire/Server/Sentinel.php @@ -110,26 +110,6 @@ public function restartSentinel() } } - public function updatedIsSentinelDebugEnabled($value) - { - try { - $this->submit(); - $this->restartSentinel(); - } catch (\Throwable $e) { - return handleError($e, $this); - } - } - - public function updatedIsMetricsEnabled($value) - { - try { - $this->submit(); - $this->restartSentinel(); - } catch (\Throwable $e) { - return handleError($e, $this); - } - } - public function updatedIsSentinelEnabled($value) { try { @@ -175,6 +155,16 @@ public function submit() } } + public function instantSave() + { + try { + $this->syncData(true); + $this->restartSentinel(); + } catch (\Throwable $e) { + return handleError($e, $this); + } + } + public function render() { return view('livewire.server.sentinel');