Skip to content

Commit

Permalink
feat(RHINENG-9709): Add available image to bootc card
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuc committed Apr 25, 2024
1 parent fd9bff4 commit 62a1ba3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/GeneralInfo/BootcImageCard/BootcImageCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export const BootcImageCard = ({ handleClick, extra }) => {
...[{ title: 'Booted Image Digest', value: bootc.bootedImageDigest }],
...[{ title: 'Staged Image', value: bootc.stagedImage }],
...[{ title: 'Staged Image Digest', value: bootc.stagedImageDigest }],
...[{ title: 'Available Image', value: bootc.availableImage }],
...[
{
title: 'Available Image Digest',
value: bootc.availableImageDigest,
},
],
...[{ title: 'Rollback Image', value: bootc.rollbackImage }],
...[
{ title: 'Rollback Image Digest', value: bootc.rollbackImageDigest },
Expand Down
5 changes: 5 additions & 0 deletions src/components/GeneralInfo/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export const biosSelector = ({
export const bootcSelector = ({ bootc_status } = {}) => ({
bootedImage: bootc_status?.booted?.image,
bootedImageDigest: bootc_status?.booted?.image_digest,
availableImage:
bootc_status?.staged?.cached_image || bootc_status?.booted?.cached_image,
availableImageDigest:
bootc_status?.staged?.cached_image_digest ||
bootc_status?.booted?.cached_image_digest,
stagedImage: bootc_status?.staged?.image,
stagedImageDigest: bootc_status?.staged?.image_digest,
rollbackImage: bootc_status?.rollback?.image,
Expand Down

0 comments on commit 62a1ba3

Please sign in to comment.