Skip to content

Commit 963294a

Browse files
🚸 Allow users to change since when actively streaming logs (#63)
1 parent 180014e commit 963294a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/cloud/ui/panel/webview.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ streamBtn.addEventListener("click", () => {
3737
}
3838
})
3939

40+
sinceFilter.addEventListener("change", () => {
41+
if (isStreaming) {
42+
vscode.postMessage({
43+
type: "startStream",
44+
since: sinceFilter.value,
45+
})
46+
}
47+
})
48+
4049
filterBtn.addEventListener("click", (e) => {
4150
e.stopPropagation()
4251
filterPopup.classList.toggle("open")
@@ -116,7 +125,6 @@ function setStreamingState(streaming: boolean, appLabel?: string): void {
116125
label.textContent = "Stream"
117126
streamBtn.title = "Start streaming"
118127
}
119-
sinceFilter.disabled = streaming
120128
appLabelEl.textContent =
121129
streaming && appLabel ? `Streaming logs for ${appLabel}...` : ""
122130
}

0 commit comments

Comments
 (0)