add test notificaiton button and methods

This commit is contained in:
Alex Holliday committed 2025-06-10 12:07:31 +08:00
1 parent 1ed317d0cb
commit e6493df881
8 files changed
+135 -90

No files matched your search

+10 -1
View File
@@ -56,7 +56,16 @@ const Notifications = () => {
id: "target",
content: "Target",
render: (row) => {
return row.address || row.config?.webhookUrl || row.config?.routingKey;
const type = row.type;
if (type === "email") {
return row.address;
}
if (type === "webhook") {
return row.config?.webhookUrl;
}
if (type === "pager_duty") {
return row.config?.routingKey;
}
},
},
{