1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00

Remove close button from job details

This commit is contained in:
Jake McDermott 2019-10-25 11:59:40 -04:00
parent 3dc8a10e85
commit a517b15c26
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
2 changed files with 0 additions and 15 deletions

View File

@ -279,14 +279,6 @@ function JobDetail({ job, i18n, history }) {
>
{i18n._(t`Delete`)}
</Button>
<Button
variant="secondary"
aria-label="close"
component={Link}
to="/jobs"
>
{i18n._(t`Close`)}
</Button>
</ActionButtonWrapper>
{isDeleteModalOpen && (
<AlertModal

View File

@ -13,13 +13,6 @@ describe('<JobDetail />', () => {
mountWithContexts(<JobDetail job={mockJobData} />);
});
test('should display a Close button', () => {
const wrapper = mountWithContexts(<JobDetail job={mockJobData} />);
expect(wrapper.find('Button[aria-label="close"]').length).toBe(1);
wrapper.unmount();
});
test('should display details', () => {
const wrapper = mountWithContexts(<JobDetail job={mockJobData} />);