We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35caeb commit 2e7de06Copy full SHA for 2e7de06
internal/dev_server/ui/src/EventsTable.tsx
@@ -153,12 +153,14 @@ const EventsTable = ({
153
return (
154
<div>
155
<h3>Events Stream (limit: {limit})</h3>
156
- <button
157
- className={`streaming-toggle-button ${isStreaming ? 'streaming' : 'not-streaming'}`}
158
- onClick={() => handleToggleStreaming(!isStreaming)}
159
- >
160
- {isStreaming ? 'Streaming ON' : 'Streaming OFF'}
161
- </button>
+ {onToggleStreaming && (
+ <button
+ className={`streaming-toggle-button ${isStreaming ? 'streaming' : 'not-streaming'}`}
+ onClick={() => handleToggleStreaming(!isStreaming)}
+ >
+ {isStreaming ? 'Streaming ON' : 'Streaming OFF'}
162
+ </button>
163
+ )}
164
<table className="events-table">
165
<thead>
166
<tr>
0 commit comments