mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Removes close button from footer of host details modal
This commit is contained in:
parent
c4a3c0aac1
commit
8daceabd26
@ -1,6 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import {
|
||||
Button,
|
||||
Modal as PFModal,
|
||||
Tab,
|
||||
Tabs as PFTabs,
|
||||
@ -141,11 +140,6 @@ function HostEventModal({ onClose, hostEvent = {}, isOpen = false, i18n }) {
|
||||
isOpen={isOpen}
|
||||
onClose={onClose}
|
||||
title={i18n._(t`Host Details`)}
|
||||
actions={[
|
||||
<Button key="cancel" variant="secondary" onClick={onClose}>
|
||||
{i18n._(t`Close`)}
|
||||
</Button>,
|
||||
]}
|
||||
>
|
||||
<Tabs
|
||||
aria-label={i18n._(t`Tabs`)}
|
||||
|
||||
@ -250,8 +250,7 @@ describe('HostEventModal', () => {
|
||||
const wrapper = mountWithContexts(
|
||||
<HostEventModal hostEvent={hostEvent} onClose={onClose} isOpen />
|
||||
);
|
||||
const closeButton = wrapper.find('ModalBoxFooter Button');
|
||||
closeButton.simulate('click');
|
||||
wrapper.find('button[aria-label="Close"]').simulate('click');
|
||||
expect(onClose).toBeCalled();
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user