2023-09-06 12:31:38 +00:00
< div >
2024-06-07 09:01:10 +00:00
< x - slot : title >
Notifications | Coolify
</ x - slot >
2024-03-22 12:25:43 +00:00
< x - notification . navbar />
< form wire : submit = 'submit' class = " flex flex-col gap-4 " >
2023-09-06 12:31:38 +00:00
< div class = " flex items-center gap-2 " >
< h2 > Telegram </ h2 >
< x - forms . button type = " submit " >
Save
</ x - forms . button >
2024-11-04 16:48:39 +00:00
@ if ( $telegramEnabled )
2024-05-17 10:09:22 +00:00
< x - forms . button class = " normal-case dark:text-white btn btn-xs no-animation btn-primary "
2023-09-06 12:31:38 +00:00
wire : click = " sendTestNotification " >
Send Test Notifications
</ x - forms . button >
@ endif
</ div >
2024-03-22 12:25:43 +00:00
< div class = " w-32 " >
2024-11-05 10:33:33 +00:00
< x - forms . checkbox instantSave = " instantSaveTelegramEnabled " id = " telegramEnabled " label = " Enabled " />
2023-09-06 12:31:38 +00:00
</ div >
< div class = " flex gap-2 " >
2024-10-09 03:14:27 +00:00
2024-11-04 16:48:39 +00:00
< x - forms . input type = " password " autocomplete = " new-password "
helper = " Get it from the <a class='inline-block underline dark:text-white' href='https://t.me/botfather' target='_blank'>BotFather Bot</a> on Telegram. "
required id = " telegramToken " label = " Token " />
2023-12-07 18:06:32 +00:00
< x - forms . input helper = " Recommended to add your bot to a group chat and add its Chat ID here. " required
2024-11-04 16:48:39 +00:00
id = " telegramChatId " label = " Chat ID " />
2023-09-06 12:31:38 +00:00
</ div >
2024-11-04 16:48:39 +00:00
@ if ( $telegramEnabled )
2023-12-07 18:06:32 +00:00
< h2 class = " mt-4 " > Subscribe to events </ h2 >
2024-05-17 10:09:22 +00:00
< div class = " flex flex-col gap-4 w-96 " >
2023-12-07 18:06:32 +00:00
@ if ( isDev ())
2024-05-17 10:09:22 +00:00
< div class = " flex flex-col " >
< h4 > Test Notification </ h4 >
2024-11-04 16:48:39 +00:00
< x - forms . checkbox instantSave = " saveModel " id = " telegramNotificationsTest " label = " Enabled " />
2023-12-07 18:06:32 +00:00
< x - forms . input
helper = " If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used. "
2024-11-04 16:48:39 +00:00
id = " telegramNotificationsTestMessageThreadId " label = " Custom Topic ID " />
2023-12-07 18:06:32 +00:00
</ div >
@ endif
2024-05-17 10:09:22 +00:00
< div class = " flex flex-col " >
< h4 > Container Status Changes </ h4 >
2024-11-04 16:48:39 +00:00
< x - forms . checkbox instantSave = " saveModel " id = " telegramNotificationsStatusChanges " label = " Enabled " />
2023-09-08 12:15:28 +00:00
< x - forms . input
helper = " If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used. "
2024-11-04 16:48:39 +00:00
id = " telegramNotificationsStatusChangesMessageThreadId " label = " Custom Topic ID " />
2023-12-07 18:06:32 +00:00
</ div >
2024-05-17 10:09:22 +00:00
< div class = " flex flex-col " >
< h4 > Application Deployments </ h4 >
2024-11-04 16:48:39 +00:00
< x - forms . checkbox instantSave = " saveModel " id = " telegramNotificationsDeployments " label = " Enabled " />
2023-12-07 18:06:32 +00:00
< x - forms . input
helper = " If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used. "
2024-11-04 16:48:39 +00:00
id = " telegramNotificationsDeploymentsMessageThreadId " label = " Custom Topic ID " />
2023-12-07 18:06:32 +00:00
</ div >
2024-05-17 10:09:22 +00:00
< div class = " flex flex-col " >
< h4 > Database Backup Status </ h4 >
2024-11-04 16:48:39 +00:00
< x - forms . checkbox instantSave = " saveModel " id = " telegramNotificationsDatabaseBackups "
2024-05-17 10:09:22 +00:00
label = " Enabled " />
2023-12-07 18:06:32 +00:00
< x - forms . input
helper = " If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used. "
2024-11-04 16:48:39 +00:00
id = " telegramNotificationsDatabaseBackupsMessageThreadId " label = " Custom Topic ID " />
2023-09-08 12:15:28 +00:00
</ div >
2024-05-21 13:36:26 +00:00
< div class = " flex flex-col " >
< h4 > Scheduled Tasks Status </ h4 >
2024-11-04 16:48:39 +00:00
< x - forms . checkbox instantSave = " saveModel " id = " telegramNotificationsScheduledTasks "
label = " Enabled " />
2024-05-21 13:36:26 +00:00
< x - forms . input
helper = " If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used. "
2024-11-04 16:48:39 +00:00
id = " telegramNotificationsScheduledTasksMessageThreadId " label = " Custom Topic ID " />
2024-05-21 13:36:26 +00:00
</ div >
2024-10-22 12:47:01 +00:00
< div class = " flex flex-col " >
< h4 > Server Disk Usage </ h4 >
2024-11-04 16:48:39 +00:00
< x - forms . checkbox instantSave = " saveModel " id = " telegramNotificationsServerDiskUsage "
2024-10-22 12:47:01 +00:00
label = " Enabled " />
</ div >
2023-09-08 12:15:28 +00:00
</ div >
@ endif
</ form >
2023-09-06 12:31:38 +00:00
</ div >