fix: notifications

This commit is contained in:
Andras Bacsai
2023-07-26 15:20:04 +02:00
parent 802ef03013
commit 8d8dcb1a3e
10 changed files with 33 additions and 36 deletions

View File

@@ -14,7 +14,7 @@ class DiscordSettings extends Component
'model.discord.webhook_url' => 'required|url',
'model.discord_notifications.test' => 'nullable|boolean',
'model.discord_notifications.deployments' => 'nullable|boolean',
'model.discord_notifications.stopped' => 'nullable|boolean',
];
protected $validationAttributes = [
'model.discord.webhook_url' => 'Discord Webhook',

View File

@@ -25,8 +25,7 @@ class EmailSettings extends Component
'model.smtp.test_recipients' => 'nullable',
'model.smtp_notifications.test' => 'nullable|boolean',
'model.smtp_notifications.deployments' => 'nullable|boolean',
'model.discord_notifications.test' => 'nullable|boolean',
'model.discord_notifications.deployments' => 'nullable|boolean',
'model.smtp_notifications.stopped' => 'nullable|boolean',
];
protected $validationAttributes = [
'model.smtp.from_address' => 'From Address',