diff --git a/resources/views/components/notification/channel-actions.blade.php b/resources/views/components/notification/channel-actions.blade.php index 37f7ee963f..b4ad3c8bda 100644 --- a/resources/views/components/notification/channel-actions.blade.php +++ b/resources/views/components/notification/channel-actions.blade.php @@ -4,6 +4,8 @@ 'toggleMethod', 'testMethod' => 'sendTestNotification', 'canUpdate' => true, + 'canResource' => null, + 'canGate' => 'update', ])
- {{ $enabled ? 'Disable' : 'Enable' }} - Send test diff --git a/resources/views/livewire/notifications/discord.blade.php b/resources/views/livewire/notifications/discord.blade.php index 9e568c8459..9e3921f514 100644 --- a/resources/views/livewire/notifications/discord.blade.php +++ b/resources/views/livewire/notifications/discord.blade.php @@ -11,7 +11,8 @@ description="Send team notifications to a Discord channel through an incoming webhook."> + toggleMethod="instantSaveDiscordEnabled" :canUpdate="auth()->user()->can('update', $settings)" + :canResource="$settings" />
diff --git a/resources/views/livewire/notifications/pushover.blade.php b/resources/views/livewire/notifications/pushover.blade.php index d617ed76cf..40661fc976 100644 --- a/resources/views/livewire/notifications/pushover.blade.php +++ b/resources/views/livewire/notifications/pushover.blade.php @@ -11,7 +11,8 @@ description="Deliver team alerts through your Pushover application."> + toggleMethod="instantSavePushoverEnabled" :canUpdate="auth()->user()->can('update', $settings)" + :canResource="$settings" />
diff --git a/resources/views/livewire/notifications/slack.blade.php b/resources/views/livewire/notifications/slack.blade.php index 9b1814b69d..f3ccd8256d 100644 --- a/resources/views/livewire/notifications/slack.blade.php +++ b/resources/views/livewire/notifications/slack.blade.php @@ -11,7 +11,8 @@ description="Send team notifications to Slack through an incoming webhook."> + toggleMethod="instantSaveSlackEnabled" :canUpdate="auth()->user()->can('update', $settings)" + :canResource="$settings" />
diff --git a/resources/views/livewire/notifications/telegram.blade.php b/resources/views/livewire/notifications/telegram.blade.php index 8686d40a3b..8ab110e62e 100644 --- a/resources/views/livewire/notifications/telegram.blade.php +++ b/resources/views/livewire/notifications/telegram.blade.php @@ -11,7 +11,8 @@ description="Deliver team notifications through a Telegram bot and chat."> + toggleMethod="instantSaveTelegramEnabled" :canUpdate="auth()->user()->can('update', $settings)" + :canResource="$settings" />
diff --git a/resources/views/livewire/notifications/webhook.blade.php b/resources/views/livewire/notifications/webhook.blade.php index 81eb8c2025..fde9054b8d 100644 --- a/resources/views/livewire/notifications/webhook.blade.php +++ b/resources/views/livewire/notifications/webhook.blade.php @@ -11,7 +11,8 @@ description="Send JSON event payloads to your own HTTP endpoint."> + toggleMethod="instantSaveWebhookEnabled" :canUpdate="auth()->user()->can('update', $settings)" + :canResource="$settings" />