diff --git a/frontend/components/common/admin/push/settings-tab.tsx b/frontend/components/common/admin/push/settings-tab.tsx
index 4dca4f5c..2dae2721 100644
--- a/frontend/components/common/admin/push/settings-tab.tsx
+++ b/frontend/components/common/admin/push/settings-tab.tsx
@@ -15,7 +15,6 @@ import {Label} from "@/components/ui/label"
import {Textarea} from "@/components/ui/textarea"
import {Switch} from "@/components/ui/switch"
import {Badge} from "@/components/ui/badge"
-import {Card, CardContent, CardHeader, CardTitle} from "@/components/ui/card"
import {Table, TableBody, TableCell, TableHead, TableHeader, TableRow,} from "@/components/ui/table"
import {
Dialog,
@@ -254,120 +253,122 @@ export function SettingsTab() {
return (
-
-
-
-
-
-
自定义推送通道
-
- 添加、配置及管理用于第三方 Webhook 对接的自定义数据推送通道
-
-
-
-
-
-
- {channelsQuery.isLoading ? (
-
-
-
- ) : channelsQuery.isError ? (
-
- channelsQuery.refetch()} className="justify-center" />
-
- ) : (channelsQuery.data ?? []).length === 0 ? (
-
-
- 暂无自定义通道配置,请点击右上角新建
-
- ) : (
-
-
-
- 名称
- 类型
- 备注
- 状态
- 操作
-
-
-
- {(channelsQuery.data ?? []).map(ch => (
-
-
- {ch.name}
-
-
-
- {(definitionsQuery.data ?? []).find(d => d.type === ch.type)?.name ?? ch.type}
-
-
-
- {ch.description || 无备注}
-
-
- {
- updateChannelMutation.mutate({
- id: ch.id,
- data: {
- description: ch.description,
- type: ch.type,
- token: ch.token,
- url: ch.url,
- other: ch.other,
- enabled: checked,
- }
- })
- }}
- />
-
-
-
-
-
-
-
- ))}
-
-
- )}
-
-
+
+
+
+
自定义推送通道
+
+ 添加、配置及管理用于第三方 Webhook 对接的自定义数据推送通道
+
+
+
+
+
+ {channelsQuery.isLoading ? (
+
+ ) : channelsQuery.isError ? (
+
+ channelsQuery.refetch()} className="justify-center" />
+
+ ) : (channelsQuery.data ?? []).length === 0 ? (
+
+
+ 暂无自定义通道配置,请点击右上角新建
+
+ ) : (
+
+
+
+
+ 名称
+ 类型
+ 备注
+ 状态
+ 操作
+
+
+
+ {(channelsQuery.data ?? []).map(ch => (
+ handleEditChannelClick(ch)}
+ >
+
+ {ch.name}
+
+
+
+ {(definitionsQuery.data ?? []).find(d => d.type === ch.type)?.name ?? ch.type}
+
+
+
+ {ch.description || 无备注}
+
+ e.stopPropagation()}>
+ {
+ updateChannelMutation.mutate({
+ id: ch.id,
+ data: {
+ description: ch.description,
+ type: ch.type,
+ token: ch.token,
+ url: ch.url,
+ other: ch.other,
+ enabled: checked,
+ }
+ })
+ }}
+ className="scale-75 data-[state=checked]:bg-green-600 h-4 w-7"
+ />
+
+ e.stopPropagation()}>
+
+
+
+
+
+
+
+ ))}
+
+
+
+ )}
{/* ==================== 对话框:新增/编辑消息通道 ==================== */}