Просмотр исходного кода

🌞feat(channels): add success notification for single channel test

- 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.
Apple\Apple 9 месяцев назад
Родитель
Сommit
452853c1a4
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      web/src/components/ChannelsTable.js

+ 7 - 0
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);
       }