Merge pull request #12529 from Godmartinz/bug/sc-20046/allow-user-to-submit-the-slack-livewire-form
allows users to clear their slack settings
This commit is contained in:
commit
fdffe76b9f
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ class SlackSettingsForm extends Component
|
||||||
if(empty($this->slack_channel || $this->slack_endpoint)){
|
if(empty($this->slack_channel || $this->slack_endpoint)){
|
||||||
$this->isDisabled= 'disabled';
|
$this->isDisabled= 'disabled';
|
||||||
}
|
}
|
||||||
|
if(empty($this->slack_endpoint && $this->slack_channel)){
|
||||||
|
$this->isDisabled= '';
|
||||||
|
}
|
||||||
return view('livewire.slack-settings-form');
|
return view('livewire.slack-settings-form');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue