From 3b6cc1b65d403c1baf6b05175c937b45bbb47845 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Thu, 13 Nov 2025 17:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9E=84=E5=BB=BA=E9=80=9A?= =?UTF-8?q?=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Team/List/components/NotificationConfigDialog.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx b/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx index d176dc1c..363d668c 100644 --- a/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx +++ b/frontend/src/pages/Deploy/Team/List/components/NotificationConfigDialog.tsx @@ -77,7 +77,9 @@ type FormData = z.infer; interface NotificationChannel { id: number; name: string; - type: string; + channelType: string; + enabled?: boolean; + description?: string; } interface NotificationTemplate { @@ -219,7 +221,7 @@ export const NotificationConfigDialog: React.FC< const selectedChannel = notificationChannels.find( (channel) => channel.id === selectedChannelId ); - loadNotificationTemplates(selectedChannel?.type); + loadNotificationTemplates(selectedChannel?.channelType); } }, [selectedChannelId, notificationChannels, open]); @@ -343,7 +345,7 @@ export const NotificationConfigDialog: React.FC< key={channel.id} value={channel.id.toString()} > - {channel.name} ({channel.type}) + {channel.name} ({channel.channelType}) ))}