Combine integrations & notifications sections (#229)

* Combine integrations & notifications sections

* New section Form Access
This commit is contained in:
formsdev
2023-10-26 16:52:16 +05:30
committed by GitHub
parent 8e5acab8bf
commit 8a2e071c56
10 changed files with 197 additions and 111 deletions

View File

@@ -29,6 +29,7 @@ class FormResource extends JsonResource
'views_count' => $this->views_count,
'submissions_count' => $this->submissions_count,
'notifies' => $this->notifies,
'notifies_webhook' => $this->notifies_webhook,
'notifies_slack' => $this->notifies_slack,
'notifies_discord' => $this->notifies_discord,
'send_submission_confirmation' => $this->send_submission_confirmation,

View File

@@ -279,6 +279,11 @@ class Form extends Model
}
public function getNotifiesWebhookAttribute()
{
return !empty($this->webhook_url);
}
public function getNotifiesDiscordAttribute()
{
return !empty($this->discord_webhook_url);