diff --git a/apps/dokploy/components/dashboard/settings/notifications/add-notification.tsx b/apps/dokploy/components/dashboard/settings/notifications/add-notification.tsx index 05bbb272..eef73ded 100644 --- a/apps/dokploy/components/dashboard/settings/notifications/add-notification.tsx +++ b/apps/dokploy/components/dashboard/settings/notifications/add-notification.tsx @@ -109,7 +109,7 @@ export type NotificationSchema = z.infer; export const AddNotification = () => { const utils = api.useUtils(); const [visible, setVisible] = useState(false); - + const { data: isCloud } = api.settings.isCloud.useQuery(); const { mutateAsync: testSlackConnection, isLoading: isLoadingSlack } = api.notification.testSlackConnection.useMutation(); @@ -660,26 +660,28 @@ export const AddNotification = () => { )} /> - ( - -
- Dokploy Restart - - Trigger the action when a dokploy is restarted. - -
- - - -
- )} - /> + {!isCloud && ( + ( + +
+ Dokploy Restart + + Trigger the action when a dokploy is restarted. + +
+ + + +
+ )} + /> + )} diff --git a/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx b/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx index 00119d42..23fd02ee 100644 --- a/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx +++ b/apps/dokploy/components/dashboard/settings/notifications/update-notification.tsx @@ -63,7 +63,7 @@ export const UpdateNotification = ({ notificationId }: Props) => { const telegramMutation = api.notification.updateTelegram.useMutation(); const discordMutation = api.notification.updateDiscord.useMutation(); const emailMutation = api.notification.updateEmail.useMutation(); - + const { data: isCloud } = api.settings.isCloud.useQuery(); const form = useForm({ defaultValues: { type: "slack", @@ -618,27 +618,29 @@ export const UpdateNotification = ({ notificationId }: Props) => { )} /> - ( - -
- Dokploy Restart - - Trigger the action when a dokploy is restarted. - -
- - - -
- )} - /> + {!isCloud && ( + ( + +
+ Dokploy Restart + + Trigger the action when a dokploy is restarted. + +
+ + + +
+ )} + /> + )}