From 197ab6d4da6c850ec7a415b2c1af13bafcf18adc Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Fri, 15 Nov 2024 07:41:44 -0800 Subject: [PATCH] feat: show loader while opening event source (#3388) --- assets/components/LogViewer/EventSource.vue | 5 ++++- assets/components/LogViewer/LogList.vue | 6 +----- .../LogViewer/__snapshots__/EventSource.spec.ts.snap | 3 ++- assets/components/ScrollableView.vue | 3 --- assets/composable/eventStreams.ts | 7 ++++++- internal/web/__snapshots__/web.snapshot | 10 +++++++++- internal/web/logs.go | 1 + 7 files changed, 23 insertions(+), 12 deletions(-) diff --git a/assets/components/LogViewer/EventSource.vue b/assets/components/LogViewer/EventSource.vue index 1f82045d..6b98bcde 100644 --- a/assets/components/LogViewer/EventSource.vue +++ b/assets/components/LogViewer/EventSource.vue @@ -1,5 +1,8 @@ @@ -11,7 +14,7 @@ const { entity, streamSource } = $defineProps<{ entity: T; }>(); -const { messages, loadOlderLogs, isLoadingMore } = streamSource($$(entity)); +const { messages, loadOlderLogs, isLoadingMore, opened } = streamSource($$(entity)); const { loadingMore } = useLoggingContext(); const enabled = ref(true); diff --git a/assets/components/LogViewer/LogList.vue b/assets/components/LogViewer/LogList.vue index 9c285db9..6be89b49 100644 --- a/assets/components/LogViewer/LogList.vue +++ b/assets/components/LogViewer/LogList.vue @@ -1,9 +1,5 @@