mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
fix unit tests for network handling
This commit is contained in:
@@ -97,4 +97,5 @@ class AWXLogin extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export { AWXLogin as _AWXLogin };
|
||||
export default withNetwork(withRootDialog(withRouter(AWXLogin)));
|
||||
|
||||
@@ -94,4 +94,5 @@ class Organizations extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export { Organizations as _Organizations };
|
||||
export default withRootDialog(withRouter(Organizations));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -62,4 +62,5 @@ class OrganizationNotifications extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export { OrganizationNotifications as _OrganizationNotifications };
|
||||
export default withNetwork(OrganizationNotifications);
|
||||
|
||||
@@ -359,4 +359,5 @@ class OrganizationsList extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export { OrganizationsList as _OrganizationsList };
|
||||
export default withNetwork(withRouter(OrganizationsList));
|
||||
|
||||
Reference in New Issue
Block a user