mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Remove plus button job output
Remove plus button job output since this feature was not implemented yet. And it will be evaluated for a future release. See: https://github.com/ansible/awx/issues/6613
This commit is contained in:
parent
d0b7d970c4
commit
057bd6e625
@ -4,7 +4,6 @@ import React from 'react';
|
||||
import { t } from '@lingui/macro';
|
||||
import { Button as PFButton } from '@patternfly/react-core';
|
||||
import {
|
||||
PlusIcon,
|
||||
AngleDoubleUpIcon,
|
||||
AngleDoubleDownIcon,
|
||||
AngleUpIcon,
|
||||
@ -17,6 +16,7 @@ const Wrapper = styled.div`
|
||||
height: 35px;
|
||||
outline: 1px solid #d7d7d7;
|
||||
width: 100%;
|
||||
justify-content: flex-end;
|
||||
`;
|
||||
|
||||
const Button = styled(PFButton)`
|
||||
@ -31,14 +31,6 @@ const PageControls = ({
|
||||
onScrollPrevious,
|
||||
}) => (
|
||||
<Wrapper>
|
||||
<Button
|
||||
ouiaId="job-output-expand-collapse-lines-button"
|
||||
aria-label={t`Toggle expand/collapse event lines`}
|
||||
variant="plain"
|
||||
css="margin-right: auto"
|
||||
>
|
||||
<PlusIcon />
|
||||
</Button>
|
||||
<Button
|
||||
ouiaId="job-output-scroll-previous-button"
|
||||
aria-label={t`Scroll previous`}
|
||||
|
||||
@ -3,14 +3,12 @@ import { mountWithContexts } from '../../../../testUtils/enzymeHelpers';
|
||||
import PageControls from './PageControls';
|
||||
|
||||
let wrapper;
|
||||
let PlusIcon;
|
||||
let AngleDoubleUpIcon;
|
||||
let AngleDoubleDownIcon;
|
||||
let AngleUpIcon;
|
||||
let AngleDownIcon;
|
||||
|
||||
const findChildren = () => {
|
||||
PlusIcon = wrapper.find('PlusIcon');
|
||||
AngleDoubleUpIcon = wrapper.find('AngleDoubleUpIcon');
|
||||
AngleDoubleDownIcon = wrapper.find('AngleDoubleDownIcon');
|
||||
AngleUpIcon = wrapper.find('AngleUpIcon');
|
||||
@ -26,7 +24,6 @@ describe('PageControls', () => {
|
||||
test('should render menu control icons', () => {
|
||||
wrapper = mountWithContexts(<PageControls />);
|
||||
findChildren();
|
||||
expect(PlusIcon.length).toBe(1);
|
||||
expect(AngleDoubleUpIcon.length).toBe(1);
|
||||
expect(AngleDoubleDownIcon.length).toBe(1);
|
||||
expect(AngleUpIcon.length).toBe(1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user