fix(web): only show ws connection status on active debug tab

This commit is contained in:
Junyan Qin
2026-03-27 19:16:27 +08:00
parent a6f96e5209
commit 4902c1d3b2

View File

@@ -102,11 +102,13 @@ export default function PipelineDetailContent({ id }: { id: string }) {
<TabsTrigger value="debug" className="gap-1.5">
<Bug className="size-3.5" />
{t('pipelines.debugChat')}
{activeTab === 'debug' && (
<span
className={`inline-block size-2 rounded-full ${
isWebSocketConnected ? 'bg-green-500' : 'bg-red-500'
}`}
/>
)}
</TabsTrigger>
<TabsTrigger value="monitoring" className="gap-1.5">
<BarChart3 className="size-3.5" />