mirror of
https://github.com/ansible/awx.git
synced 2026-04-04 17:55:06 -02:30
fix unit tests for network handling
This commit is contained in:
@@ -355,8 +355,8 @@ class OrganizationAccessList extends React.Component {
|
||||
isOpen={showWarning}
|
||||
onClose={this.hideWarning}
|
||||
actions={[
|
||||
<Button variant="danger" aria-label="confirm-delete" onClick={this.confirmDelete}>Delete</Button>,
|
||||
<Button variant="secondary" onClick={this.hideWarning}>Cancel</Button>
|
||||
<Button key="delete" variant="danger" aria-label="Confirm delete" onClick={this.confirmDelete}>Delete</Button>,
|
||||
<Button key="cancel" variant="secondary" onClick={this.hideWarning}>Cancel</Button>
|
||||
]}
|
||||
>
|
||||
{warningMsg}
|
||||
@@ -447,4 +447,5 @@ OrganizationAccessList.propTypes = {
|
||||
removeRole: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
export { OrganizationAccessList as _OrganizationAccessList };
|
||||
export default withNetwork(OrganizationAccessList);
|
||||
|
||||
@@ -28,6 +28,7 @@ class OrganizationForm extends Component {
|
||||
|
||||
this.state = {
|
||||
instanceGroups: [],
|
||||
initialInstanceGroups: [],
|
||||
formIsValid: true,
|
||||
};
|
||||
}
|
||||
@@ -174,4 +175,5 @@ OrganizationForm.contextTypes = {
|
||||
custom_virtualenvs: PropTypes.arrayOf(PropTypes.string)
|
||||
};
|
||||
|
||||
export { OrganizationForm as _OrganizationForm };
|
||||
export default withNetwork(withRouter(OrganizationForm));
|
||||
|
||||
Reference in New Issue
Block a user