1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

feat: adds show hostname and container name to dropdown in mutli log mode (#3406)

This commit is contained in:
Amir Raminfar
2024-11-19 08:46:20 -08:00
committed by GitHub
parent 7ee260311e
commit bd7f6bc886
17 changed files with 79 additions and 42 deletions

View File

@@ -23,7 +23,6 @@
:stream-source="useStackStream"
:entity="stack"
:visible-keys="new Map<string[], boolean>()"
:show-container-name="true"
/>
</template>
</ScrollableView>
@@ -42,5 +41,8 @@ const viewer = ref<ComponentExposed<typeof ViewerWithSource>>();
const store = useSwarmStore();
const { stacks } = storeToRefs(store) as unknown as { stacks: Ref<Stack[]> };
const stack = computed(() => stacks.value.find((s) => s.name === name) ?? new Stack("", [], []));
provideLoggingContext(toRef(() => stack.value.containers));
provideLoggingContext(
toRef(() => stack.value.containers),
{ showContainerName: true, showHostname: false },
);
</script>