增加构建通知
This commit is contained in:
parent
8b26c0d196
commit
3b6cc1b65d
@ -77,7 +77,9 @@ type FormData = z.infer<typeof formSchema>;
|
||||
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})
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user