From 9d53e04ce9b40c0d808c5d2a55268adc9a8cdf0c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 7 Sep 2023 08:48:16 +0200 Subject: [PATCH] fix: saveModel email settings --- app/Http/Livewire/Notifications/EmailSettings.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Notifications/EmailSettings.php b/app/Http/Livewire/Notifications/EmailSettings.php index 4ddfaf87f..4ef735a04 100644 --- a/app/Http/Livewire/Notifications/EmailSettings.php +++ b/app/Http/Livewire/Notifications/EmailSettings.php @@ -107,7 +107,14 @@ public function instantSave() return general_error_handler($e, $this); } } - + public function saveModel() + { + $this->team->save(); + if (is_a($this->team, Team::class)) { + refreshSession(); + } + $this->emit('success', 'Settings saved.'); + } public function submit() { try {