From 452853c1a4c223870b7735f2019f6a89f28b4ce2 Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Sun, 25 May 2025 11:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9Efeat(channels):=20add=20success=20n?= =?UTF-8?q?otification=20for=20single=20channel=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add success notification when testing a single channel - Only show notification for individual channel test, not for batch model testing - Include channel name and response time in the notification message - Keep error notifications for both single and batch testing scenarios This improves user feedback when manually testing channel connectivity. --- web/src/components/ChannelsTable.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/src/components/ChannelsTable.js b/web/src/components/ChannelsTable.js index eeccb983..4b9ba9e8 100644 --- a/web/src/components/ChannelsTable.js +++ b/web/src/components/ChannelsTable.js @@ -1077,6 +1077,13 @@ const ChannelsTable = () => { ch.response_time = time * 1000; ch.test_time = Date.now() / 1000; }); + if (!model) { + showInfo( + t('通道 ${name} 测试成功,耗时 ${time.toFixed(2)} 秒。') + .replace('${name}', channel.name) + .replace('${time.toFixed(2)}', time.toFixed(2)), + ); + } } else { showError(message); }