From 58801dbb0b26856146464e6e96b854433d33eaae Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Thu, 16 Feb 2023 08:43:12 -0800 Subject: [PATCH] allows users to clear their slack settings --- app/Http/Livewire/SlackSettingsForm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Livewire/SlackSettingsForm.php b/app/Http/Livewire/SlackSettingsForm.php index 1fda9a118c..cd34b450a8 100644 --- a/app/Http/Livewire/SlackSettingsForm.php +++ b/app/Http/Livewire/SlackSettingsForm.php @@ -39,6 +39,9 @@ class SlackSettingsForm extends Component if(empty($this->slack_channel || $this->slack_endpoint)){ $this->isDisabled= 'disabled'; } + if(empty($this->slack_endpoint && $this->slack_channel)){ + $this->isDisabled= ''; + } return view('livewire.slack-settings-form'); }