// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import * as Utils from 'utils/utils.jsx'; import DropdownSetting from './dropdown_setting.jsx'; import {FormattedMessage} from 'react-intl'; const SECTION_NONE = ( ); const SECTION_PLAIN = ( ); const SECTION_TLS = ( ); const SECTION_STARTTLS = ( ); const CONNECTION_SECURITY_HELP_TEXT_EMAIL = ( {SECTION_NONE} {SECTION_PLAIN} {SECTION_TLS} {SECTION_STARTTLS}
); const CONNECTION_SECURITY_HELP_TEXT_LDAP = ( {SECTION_NONE} {SECTION_TLS} {SECTION_STARTTLS}
); const CONNECTION_SECURITY_HELP_TEXT_WEBSERVER = ( {SECTION_NONE} {SECTION_TLS}
); export class ConnectionSecurityDropdownSettingEmail extends React.Component { //eslint-disable-line react/no-multi-comp render() { return ( } value={this.props.value} onChange={this.props.onChange} disabled={this.props.disabled} helpText={CONNECTION_SECURITY_HELP_TEXT_EMAIL} /> ); } } ConnectionSecurityDropdownSettingEmail.defaultProps = { }; ConnectionSecurityDropdownSettingEmail.propTypes = { value: React.PropTypes.string.isRequired, onChange: React.PropTypes.func.isRequired, disabled: React.PropTypes.bool.isRequired }; export class ConnectionSecurityDropdownSettingLdap extends React.Component { //eslint-disable-line react/no-multi-comp render() { return ( } value={this.props.value} onChange={this.props.onChange} disabled={this.props.disabled} helpText={CONNECTION_SECURITY_HELP_TEXT_LDAP} /> ); } } ConnectionSecurityDropdownSettingLdap.defaultProps = { }; ConnectionSecurityDropdownSettingLdap.propTypes = { value: React.PropTypes.string.isRequired, onChange: React.PropTypes.func.isRequired, disabled: React.PropTypes.bool.isRequired }; export class ConnectionSecurityDropdownSettingWebserver extends React.Component { //eslint-disable-line react/no-multi-comp render() { return ( } value={this.props.value} onChange={this.props.onChange} disabled={this.props.disabled} helpText={CONNECTION_SECURITY_HELP_TEXT_WEBSERVER} /> ); } } ConnectionSecurityDropdownSettingWebserver.defaultProps = { }; ConnectionSecurityDropdownSettingWebserver.propTypes = { value: React.PropTypes.string.isRequired, onChange: React.PropTypes.func.isRequired, disabled: React.PropTypes.bool.isRequired };