Skip to content

Commit

Permalink
Refs #38107 - add digests + hosts columns to bootc containers page
Browse files Browse the repository at this point in the history
  • Loading branch information
ianballou committed Dec 23, 2024
1 parent ade4874 commit 05759e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webpack/scenes/BootedContainerImages/BootedContainerImagesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ const BootedContainerImagesPage = () => {
const columns = {
image_name: {
title: __('Image name'),
isSorted: true,
},
digest: {
title: __('Image digests'),
wrapper: ({digests}) => digests.length,
},
hosts: {
title: __('Hosts'),
wrapper: ({image_name, digests}) => (
<a href={`/hosts?search=bootc_booted_image%20=%20${image_name}`}>{digests.reduce((total, digest) => total + digest.host_count, 0)}</a>
),
},
};

Expand Down

0 comments on commit 05759e3

Please sign in to comment.