Skip to content

Commit

Permalink
Fixes #35367 - Add legacy ch host ui button to new host page (#10235)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 committed Aug 17, 2022
1 parent bc1304b commit dc10b82
Showing 1 changed file with 8 additions and 1 deletion.
@@ -1,7 +1,7 @@
import React from 'react';
import { useSelector } from 'react-redux';
import { DropdownItem } from '@patternfly/react-core';
import { CubeIcon } from '@patternfly/react-icons';
import { CubeIcon, UndoIcon } from '@patternfly/react-icons';

import { translate as __ } from 'foremanReact/common/I18n';
import { foremanUrl } from 'foremanReact/common/helpers';
Expand All @@ -13,6 +13,13 @@ const HostActionsBar = () => {

return (
<>
<DropdownItem
key="katello-legacy-contenthost-ui"
href={foremanUrl(`/content_hosts/${hostDetails?.id}`)}
icon={<UndoIcon />}
>
{__('Legacy content host UI')}
</DropdownItem>
<DropdownItem
key="katello-change-host-content-source"
href={foremanUrl(`/change_host_content_source?host_id=${hostDetails?.id}`)}
Expand Down

0 comments on commit dc10b82

Please sign in to comment.