Skip to content

Commit

Permalink
do not show console and logs for infra containers
Browse files Browse the repository at this point in the history
  • Loading branch information
strzinek authored and jelly committed Aug 18, 2022
1 parent b415c15 commit 1050367
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/Containers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1050367

Please sign in to comment.