From 1050367820778184bb7a173a83232cfa1bdbff8a Mon Sep 17 00:00:00 2001 From: strzinek Date: Fri, 13 May 2022 20:57:14 +0200 Subject: [PATCH] do not show console and logs for infra containers --- src/Containers.jsx | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/Containers.jsx b/src/Containers.jsx index e0730b148..01e781ea7 100644 --- a/src/Containers.jsx +++ b/src/Containers.jsx @@ -404,23 +404,26 @@ class Containers extends React.Component { const tty = containerDetail ? !!containerDetail.Config.Tty : undefined; - const tabs = [{ + let tabs = [{ name: _("Details"), renderer: ContainerDetails, data: { container: container, containerDetail: containerDetail } - }, { - name: _("Integration"), - renderer: ContainerIntegration, - data: { container: container, containerDetail: containerDetail, localImages: localImages } - }, { - name: _("Logs"), - renderer: ContainerLogs, - data: { containerId: container.Id, containerStatus: container.State, width: this.state.width, system: container.isSystem } - }, { - name: _("Console"), - renderer: ContainerTerminal, - data: { containerId: container.Id, containerStatus: container.State, width: this.state.width, system: container.isSystem, tty: tty } }]; + if (!container.IsInfra) { + tabs = tabs.concat([{ + name: _("Integration"), + renderer: ContainerIntegration, + data: { container: container, containerDetail: containerDetail, localImages: localImages } + }, { + name: _("Logs"), + renderer: ContainerLogs, + data: { containerId: container.Id, width: this.state.width, system: container.isSystem } + }, { + name: _("Console"), + renderer: ContainerTerminal, + data: { containerId: container.Id, containerStatus: container.State, width: this.state.width, system: container.isSystem, tty: tty } + }]); + } if (healthcheck) { tabs.push({