mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Revert "Fix output search styling"
This reverts commit 46728a0931b27740262c1e91e53475574cf57c98.
This commit is contained in:
parent
46728a0931
commit
2c8d524b1a
@ -11,7 +11,7 @@ import {
|
||||
} from '@patternfly/react-core';
|
||||
import { RocketIcon } from '@patternfly/react-icons';
|
||||
|
||||
function ReLaunchDropDown({ isPrimary = false, handleRelaunch, i18n, ouiaId }) {
|
||||
function ReLaunchDropDown({ isPrimary = false, handleRelaunch, i18n }) {
|
||||
const [isOpen, setIsOPen] = useState(false);
|
||||
|
||||
const onToggle = () => {
|
||||
@ -75,7 +75,6 @@ function ReLaunchDropDown({ isPrimary = false, handleRelaunch, i18n, ouiaId }) {
|
||||
|
||||
return (
|
||||
<Dropdown
|
||||
ouiaId={ouiaId}
|
||||
isPlain
|
||||
position={DropdownPosition.right}
|
||||
isOpen={isOpen}
|
||||
|
||||
@ -200,7 +200,7 @@ const OutputFooter = styled.div`
|
||||
`;
|
||||
|
||||
const Toolbar = styled(_Toolbar)`
|
||||
position: inherit !important;
|
||||
position: inherit;
|
||||
`;
|
||||
|
||||
const ToolbarContent = styled(_ToolbarContent)`
|
||||
|
||||
@ -145,17 +145,13 @@ const OutputToolbar = ({
|
||||
{job.status === 'failed' && job.type === 'job' ? (
|
||||
<LaunchButton resource={job}>
|
||||
{({ handleRelaunch }) => (
|
||||
<ReLaunchDropDown
|
||||
handleRelaunch={handleRelaunch}
|
||||
ouiaId="job-output-relaunch-dropdown"
|
||||
/>
|
||||
<ReLaunchDropDown handleRelaunch={handleRelaunch} />
|
||||
)}
|
||||
</LaunchButton>
|
||||
) : (
|
||||
<LaunchButton resource={job}>
|
||||
{({ handleRelaunch }) => (
|
||||
<Button
|
||||
ouiaId="job-output-relaunch-button"
|
||||
variant="plain"
|
||||
onClick={handleRelaunch}
|
||||
aria-label={i18n._(t`Relaunch`)}
|
||||
@ -171,11 +167,7 @@ const OutputToolbar = ({
|
||||
{job.related?.stdout && (
|
||||
<Tooltip content={i18n._(t`Download Output`)}>
|
||||
<a href={`${job.related.stdout}?format=txt_download`}>
|
||||
<Button
|
||||
ouiaId="job-output-download-button"
|
||||
variant="plain"
|
||||
aria-label={i18n._(t`Download Output`)}
|
||||
>
|
||||
<Button variant="plain" aria-label={i18n._(t`Download Output`)}>
|
||||
<DownloadIcon />
|
||||
</Button>
|
||||
</a>
|
||||
@ -185,7 +177,6 @@ const OutputToolbar = ({
|
||||
['pending', 'waiting', 'running'].includes(jobStatus) && (
|
||||
<Tooltip content={i18n._(t`Cancel Job`)}>
|
||||
<Button
|
||||
ouiaId="job-output-cancel-button"
|
||||
variant="plain"
|
||||
aria-label={i18n._(t`Cancel Job`)}
|
||||
onClick={onCancel}
|
||||
@ -200,7 +191,6 @@ const OutputToolbar = ({
|
||||
) && (
|
||||
<Tooltip content={i18n._(t`Delete Job`)}>
|
||||
<DeleteButton
|
||||
ouiaId="job-output-delete-button"
|
||||
name={job.name}
|
||||
modalTitle={i18n._(t`Delete Job`)}
|
||||
onConfirm={onDelete}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user