🌞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.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user