Skip to content

Commit

Permalink
Fixes #38113 - Add link to REX job templates for bootc action
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu committed Dec 20, 2024
1 parent dbfa2ef commit 1adbc6f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ import {
} from '@patternfly/react-core';
import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate';
import FontAwesomeImageModeIcon from '../../../../components/extensions/Hosts/FontAwesomeImageModeIcon';
import { createJob } from '../Tabs/customizedRexUrlHelpers';

const cardHeader = (
<>
<span style={{ marginRight: '0.5rem' }}>{__('Image mode details')}</span>
<FontAwesomeImageModeIcon />
</>
);
const actionUrl = (hostname) => createJob({

Check failure on line 20 in webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 14

Unexpected parentheses around single function argument having a body with no curly braces

Check failure on line 20 in webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 18

Unexpected parentheses around single function argument having a body with no curly braces
hostname,
feature: 'katello_bootc_action',
inputs: {},
});

const ImageModeCard = ({ isExpandedGlobal, hostDetails }) => {
const imageMode = hostDetails?.content_facet_attributes?.bootc_booted_image;
Expand All @@ -28,6 +34,7 @@ const ImageModeCard = ({ isExpandedGlobal, hostDetails }) => {
masonryLayout
isExpandedGlobal={isExpandedGlobal}
>
<a href={actionUrl(hostDetails.name)}>{__('Bootc action template')}</a>

Check failure on line 37 in webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 14

'hostDetails.name' is missing in props validation

Check failure on line 37 in webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js

View workflow job for this annotation

GitHub Actions / react-tests / Foreman develop Ruby 2.7 and Node 18

'hostDetails.name' is missing in props validation
<DescriptionList isHorizontal>
<DescriptionListGroup>
<Dt>{__('Running image')}</Dt>
Expand Down

0 comments on commit 1adbc6f

Please sign in to comment.