// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import SettingItemMin from '../setting_item_min.jsx'; import SettingItemMax from '../setting_item_max.jsx'; import * as GlobalActions from 'action_creators/global_actions.jsx'; import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl'; const holders = defineMessages({ applicationsPreview: { id: 'user.settings.developer.applicationsPreview', defaultMessage: 'Applications (Preview)' }, thirdParty: { id: 'user.settings.developer.thirdParty', defaultMessage: 'Open to register a new third-party application' } }); import React from 'react'; class DeveloperTab extends React.Component { constructor(props) { super(props); this.register = this.register.bind(this); this.state = {}; } register() { this.props.closeModal(); GlobalActions.showRegisterAppModal(); } render() { var appSection; var self = this; const {formatMessage} = this.props.intl; if (this.props.activeSection === 'app') { var inputs = []; inputs.push(
); appSection = ( ); } else { appSection = ( ); } return (

{appSection}
); } } DeveloperTab.defaultProps = { activeSection: '' }; DeveloperTab.propTypes = { intl: intlShape.isRequired, activeSection: React.PropTypes.string, updateSection: React.PropTypes.func, closeModal: React.PropTypes.func.isRequired, collapseModal: React.PropTypes.func.isRequired }; export default injectIntl(DeveloperTab);