From 48ccde053b180087f4a8ee82c6ab029d36f88a2f Mon Sep 17 00:00:00 2001 From: Bot Date: Thu, 16 Apr 2026 21:43:50 +0800 Subject: [PATCH] feat: specialized UI labels for Telegram notification type --- src/components/notifier.tsx | 56 ++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/src/components/notifier.tsx b/src/components/notifier.tsx index 6004262..ce5e69b 100644 --- a/src/components/notifier.tsx +++ b/src/components/notifier.tsx @@ -164,6 +164,7 @@ export const NotifierCard: React.FC = ({ data, mutate }) => { Webhook SMTP (Email) + Telegram @@ -175,15 +176,18 @@ export const NotifierCard: React.FC = ({ data, mutate }) => { name="url" render={({ field }) => ( - {form.watch("type") == 2 ? "SMTP Server (host:port)" : "URL"} + + {form.watch("type") == 2 ? "SMTP Server (host:port)" : + form.watch("type") == 3 ? "Bot Token" : "URL"} + - + )} /> - {form.watch("type") != 2 && ( + {form.watch("type") != 2 && form.watch("type") != 3 && ( <> = ({ data, mutate }) => { name="request_header" render={({ field }) => ( - {form.watch("type") == 2 ? "SMTP User:Pass" : t("RequestHeader")} + + {form.watch("type") == 2 ? "SMTP User:Pass" : + form.watch("type") == 3 ? "Chat ID" : t("RequestHeader")} +