Skip to content

Commit

Permalink
enhance: show toolbox & distrobox containers different in containers …
Browse files Browse the repository at this point in the history
…listing

fixes #865
  • Loading branch information
subhoghoshX committed Sep 15, 2023
1 parent 149fc4f commit e0e65ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Containers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ class Containers extends React.Component {
renderRow(containersStats, container, localImages) {
const containerStats = containersStats[container.Id + container.isSystem.toString()];
const image = container.ImageName;
const isToolboxContainer = container.Config?.Labels?.["com.github.containers.toolbox"] === "true";
let localized_health = null;

// this needs to get along with stub containers from image run dialog, where most properties don't exist yet
Expand All @@ -397,7 +398,10 @@ class Containers extends React.Component {
}
const info_block = (
<div className="container-block">
<span className="container-name">{container.Name}</span>
<Flex alignItems={{ default: 'alignItemsCenter' }}>
<span className="container-name">{container.Name}</span>
{isToolboxContainer && <Badge>toolbox</Badge>}
</Flex>
<small>{image}</small>
<small>{utils.quote_cmdline(container.Config?.Cmd)}</small>
</div>
Expand Down

0 comments on commit e0e65ca

Please sign in to comment.