Skip to content

Commit 9744bd8

Browse files
committed
Fixes #38738 - Update Recent Jobs dropdown for PF5
1 parent 9b25ea0 commit 9744bd8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

webpack/react_app/components/RecentJobsCard/RecentJobsCard.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import PropTypes from 'prop-types';
22
import React, { useState } from 'react';
33

4-
import { Tabs, Tab, TabTitleText } from '@patternfly/react-core';
5-
import { DropdownItem } from '@patternfly/react-core/deprecated';
4+
import { DropdownItem, Tabs, Tab, TabTitleText } from '@patternfly/react-core';
65
import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate';
76
import { translate as __ } from 'foremanReact/common/I18n';
87
import { foremanUrl } from 'foremanReact/common/helpers';
@@ -26,14 +25,14 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
2625
header={__('Recent jobs')}
2726
dropdownItems={[
2827
<DropdownItem
29-
href={foremanUrl(`${JOB_BASE_URL}${id}`)}
28+
to={foremanUrl(`${JOB_BASE_URL}${id}`)}
3029
key="link-to-all"
3130
ouiaId="link-to-all-dropdown-item"
3231
>
3332
{__('View all jobs')}
3433
</DropdownItem>,
3534
<DropdownItem
36-
href={foremanUrl(
35+
to={foremanUrl(
3736
`${JOB_BASE_URL}${id}+and+status+%3D+failed+or+status%3D+succeeded`
3837
)}
3938
key="link-to-finished"
@@ -42,14 +41,14 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
4241
{__('View finished jobs')}
4342
</DropdownItem>,
4443
<DropdownItem
45-
href={foremanUrl(`${JOB_BASE_URL}${id}+and+status+%3D+running`)}
44+
to={foremanUrl(`${JOB_BASE_URL}${id}+and+status+%3D+running`)}
4645
key="link-to-running"
4746
ouiaId="link-to-running-dropdown-item"
4847
>
4948
{__('View running jobs')}
5049
</DropdownItem>,
5150
<DropdownItem
52-
href={foremanUrl(`${JOB_BASE_URL}${id}+and+status+%3D+queued`)}
51+
to={foremanUrl(`${JOB_BASE_URL}${id}+and+status+%3D+queued`)}
5352
key="link-to-scheduled"
5453
ouiaId="link-to-scheduled-dropdown-item"
5554
>

0 commit comments

Comments
 (0)