增加构建通知
This commit is contained in:
parent
8b26c0d196
commit
3b6cc1b65d
@ -77,7 +77,9 @@ type FormData = z.infer<typeof formSchema>;
|
|||||||
interface NotificationChannel {
|
interface NotificationChannel {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: string;
|
channelType: string;
|
||||||
|
enabled?: boolean;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NotificationTemplate {
|
interface NotificationTemplate {
|
||||||
@ -219,7 +221,7 @@ export const NotificationConfigDialog: React.FC<
|
|||||||
const selectedChannel = notificationChannels.find(
|
const selectedChannel = notificationChannels.find(
|
||||||
(channel) => channel.id === selectedChannelId
|
(channel) => channel.id === selectedChannelId
|
||||||
);
|
);
|
||||||
loadNotificationTemplates(selectedChannel?.type);
|
loadNotificationTemplates(selectedChannel?.channelType);
|
||||||
}
|
}
|
||||||
}, [selectedChannelId, notificationChannels, open]);
|
}, [selectedChannelId, notificationChannels, open]);
|
||||||
|
|
||||||
@ -343,7 +345,7 @@ export const NotificationConfigDialog: React.FC<
|
|||||||
key={channel.id}
|
key={channel.id}
|
||||||
value={channel.id.toString()}
|
value={channel.id.toString()}
|
||||||
>
|
>
|
||||||
{channel.name} ({channel.type})
|
{channel.name} ({channel.channelType})
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
))}
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user