From d2015fdebda80d9a8a3e68cee5a617cc159c8142 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 22 Jul 2024 13:57:27 -0700 Subject: [PATCH] chore: cleans up logging context (#3136) --- .../ContainerViewer/ContainerActionsToolbar.vue | 2 +- .../components/ContainerViewer/ContainerLog.vue | 3 +-- assets/components/GroupedViewer/GroupedLog.vue | 3 +-- assets/components/LogViewer/EventSource.vue | 11 ++++------- .../components/LogViewer/ViewerWithSource.vue | 10 +--------- .../MultiContainerViewer/MultiContainerLog.vue | 3 +-- assets/components/ScrollableView.vue | 12 ++++-------- assets/components/ServiceViewer/ServiceLog.vue | 3 +-- assets/components/StackViewer/StackLog.vue | 3 +-- assets/composable/eventStreams.ts | 12 ++++++------ assets/composable/logContext.ts | 17 +++++++++++------ 11 files changed, 32 insertions(+), 47 deletions(-) diff --git a/assets/components/ContainerViewer/ContainerActionsToolbar.vue b/assets/components/ContainerViewer/ContainerActionsToolbar.vue index a54368af..608b202f 100644 --- a/assets/components/ContainerViewer/ContainerActionsToolbar.vue +++ b/assets/components/ContainerViewer/ContainerActionsToolbar.vue @@ -115,7 +115,7 @@ const { container } = defineProps<{ container: Container }>(); const { actionStates, start, stop, restart } = useContainerActions(toRef(() => container)); const downloadParams = computed(() => - Object.entries(streamConfig) + Object.entries(toValue(streamConfig)) .filter(([, value]) => value) .reduce((acc, [key]) => ({ ...acc, [key]: "1" }), {}), ); diff --git a/assets/components/ContainerViewer/ContainerLog.vue b/assets/components/ContainerViewer/ContainerLog.vue index 0a1dfd6e..5d58b7a5 100644 --- a/assets/components/ContainerViewer/ContainerLog.vue +++ b/assets/components/ContainerViewer/ContainerLog.vue @@ -11,10 +11,9 @@ -