From 1adbc6fa9bee9bcfe354234152f4d65643422968 Mon Sep 17 00:00:00 2001 From: Lucy Fu Date: Tue, 17 Dec 2024 12:07:35 -0500 Subject: [PATCH] Fixes #38113 - Add link to REX job templates for bootc action --- .../HostDetails/DetailsTabCards/ImageModeCard.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js b/webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js index d6333d515b7..1bebfeab509 100644 --- a/webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js +++ b/webpack/components/extensions/HostDetails/DetailsTabCards/ImageModeCard.js @@ -9,6 +9,7 @@ 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 = ( <> @@ -16,6 +17,11 @@ const cardHeader = ( ); +const actionUrl = (hostname) => createJob({ + hostname, + feature: 'katello_bootc_action', + inputs: {}, +}); const ImageModeCard = ({ isExpandedGlobal, hostDetails }) => { const imageMode = hostDetails?.content_facet_attributes?.bootc_booted_image; @@ -28,6 +34,7 @@ const ImageModeCard = ({ isExpandedGlobal, hostDetails }) => { masonryLayout isExpandedGlobal={isExpandedGlobal} > + {__('Bootc action template')}
{__('Running image')}