import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { Form, Button } from 'patternfly-react'; import { withRouter } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Select from '../../components/Select/Select'; import * as SelectOrgActions from './SelectOrgAction'; import reducer from './SelectOrgReducer'; import { LoadingState } from '../../components/LoadingState'; import './SelectOrg.scss'; class SetOrganization extends Component { constructor(props) { super(props); this.onSelectItem = this.onSelectItem.bind(this); this.onSend = this.onSend.bind(this); this.state = { disabled: true }; } componentDidMount() { this.props.getOrganiztionsList(); } onSelectItem(e) { this.setState({ id: e.target.value, disabled: false, }); } onSend() { this.setState({ disabled: true, }); } render() { const { list, loading, } = this.props; const { id } = this.state; return (

{__('Select an Organization')}

{__('The page you are attempting to access requires selecting a specific organization.')}

{__('Please select one from the list below and you will be redirected.')}