2023-06-01 10:15:33 +00:00
|
|
|
<div>
|
2024-03-22 12:25:43 +00:00
|
|
|
<x-notification.navbar />
|
|
|
|
<form wire:submit='submit' class="flex flex-col gap-4">
|
2023-06-01 10:15:33 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-06-02 10:34:45 +00:00
|
|
|
<h2>Discord</h2>
|
|
|
|
<x-forms.button type="submit">
|
2023-06-01 10:15:33 +00:00
|
|
|
Save
|
|
|
|
</x-forms.button>
|
2023-09-06 12:31:38 +00:00
|
|
|
@if ($team->discord_enabled)
|
2024-03-24 15:00:25 +00:00
|
|
|
<x-forms.button class="dark:text-white normal-case btn btn-xs no-animation btn-primary"
|
2023-08-11 18:19:42 +00:00
|
|
|
wire:click="sendTestNotification">
|
2023-06-09 13:55:21 +00:00
|
|
|
Send Test Notifications
|
|
|
|
</x-forms.button>
|
|
|
|
@endif
|
2023-06-01 10:15:33 +00:00
|
|
|
</div>
|
2024-03-22 12:25:43 +00:00
|
|
|
<div class="w-32">
|
2024-01-17 11:23:58 +00:00
|
|
|
<x-forms.checkbox instantSave id="team.discord_enabled" label="Enabled" />
|
2023-05-25 16:27:52 +00:00
|
|
|
</div>
|
2023-07-28 10:51:26 +00:00
|
|
|
<x-forms.input type="password"
|
2023-08-11 18:19:42 +00:00
|
|
|
helper="Generate a webhook in Discord.<br>Example: https://discord.com/api/webhooks/...." required
|
2023-09-06 12:31:38 +00:00
|
|
|
id="team.discord_webhook_url" label="Webhook" />
|
2023-05-25 16:27:52 +00:00
|
|
|
</form>
|
2023-09-06 12:31:38 +00:00
|
|
|
@if (data_get($team, 'discord_enabled'))
|
2023-09-08 14:59:49 +00:00
|
|
|
<h2 class="mt-4">Subscribe to events</h2>
|
2023-08-10 19:00:02 +00:00
|
|
|
<div class="w-64">
|
2023-08-27 13:23:47 +00:00
|
|
|
@if (isDev())
|
2023-10-05 12:44:17 +00:00
|
|
|
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_test" label="Test" />
|
2023-06-20 13:04:46 +00:00
|
|
|
@endif
|
2023-10-05 12:44:17 +00:00
|
|
|
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_status_changes"
|
|
|
|
label="Container Status Changes" />
|
|
|
|
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_deployments"
|
|
|
|
label="Application Deployments" />
|
|
|
|
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_database_backups"
|
|
|
|
label="Backup Status" />
|
2023-06-20 13:04:46 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2023-05-25 16:27:52 +00:00
|
|
|
</div>
|