Parcourir la source

🌞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 il y a 9 mois
Parent
commit
452853c1a4
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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.response_time = time * 1000;
           ch.test_time = Date.now() / 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 {
       } else {
         showError(message);
         showError(message);
       }
       }