From 99c8607ff4b338a7267c18ab33b1333f53648dd8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 27 Sep 2023 22:43:32 +0200 Subject: [PATCH] fix: disable early updates --- app/Http/Livewire/Settings/Configuration.php | 7 ++++++- resources/views/livewire/settings/configuration.blade.php | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Settings/Configuration.php b/app/Http/Livewire/Settings/Configuration.php index 9bc7c20cb..6f5fd3475 100644 --- a/app/Http/Livewire/Settings/Configuration.php +++ b/app/Http/Livewire/Settings/Configuration.php @@ -45,7 +45,12 @@ public function instantSave() $this->settings->do_not_track = $this->do_not_track; $this->settings->is_auto_update_enabled = $this->is_auto_update_enabled; $this->settings->is_registration_enabled = $this->is_registration_enabled; - $this->settings->next_channel = $this->next_channel; + if ($this->next_channel) { + $this->settings->next_channel = false; + $this->next_channel = false; + } else { + $this->settings->next_channel = $this->next_channel; + } $this->settings->save(); $this->emit('success', 'Settings updated!'); } diff --git a/resources/views/livewire/settings/configuration.blade.php b/resources/views/livewire/settings/configuration.blade.php index 0f0c69e6a..a5a0a60ef 100644 --- a/resources/views/livewire/settings/configuration.blade.php +++ b/resources/views/livewire/settings/configuration.blade.php @@ -24,7 +24,12 @@ + @if($next_channel) + @else + + @endif