summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-08-03 12:19:27 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-08-03 13:19:27 -0400
commit5bc3cea6fe4a909735753692d0c4cd960e8ab516 (patch)
tree85715d9fcbc146a9672d84c9a1ea1e96b6e71231 /webapp/components/user_settings
parentea027c8de44d44b6ac4e66ab802e675d315b0be5 (diff)
downloadchat-5bc3cea6fe4a909735753692d0c4cd960e8ab516.tar.gz
chat-5bc3cea6fe4a909735753692d0c4cd960e8ab516.tar.bz2
chat-5bc3cea6fe4a909735753692d0c4cd960e8ab516.zip
PLT-3484 OAuth2 Service Provider (#3632)
* PLT-3484 OAuth2 Service Provider * PM text review for OAuth 2.0 Service Provider * PLT-3484 OAuth2 Service Provider UI tweaks (#3668) * Tweaks to help text * Pushing OAuth improvements (#3680) * Re-arrange System Console for OAuth 2.0 Provider
Diffstat (limited to 'webapp/components/user_settings')
-rw-r--r--webapp/components/user_settings/user_settings.jsx12
-rw-r--r--webapp/components/user_settings/user_settings_developer.jsx138
-rw-r--r--webapp/components/user_settings/user_settings_modal.jsx8
3 files changed, 0 insertions, 158 deletions
diff --git a/webapp/components/user_settings/user_settings.jsx b/webapp/components/user_settings/user_settings.jsx
index cf69a564f..99a7ec93b 100644
--- a/webapp/components/user_settings/user_settings.jsx
+++ b/webapp/components/user_settings/user_settings.jsx
@@ -6,7 +6,6 @@ import * as utils from 'utils/utils.jsx';
import NotificationsTab from './user_settings_notifications.jsx';
import SecurityTab from './user_settings_security.jsx';
import GeneralTab from './user_settings_general.jsx';
-import DeveloperTab from './user_settings_developer.jsx';
import DisplayTab from './user_settings_display.jsx';
import AdvancedTab from './user_settings_advanced.jsx';
@@ -77,17 +76,6 @@ export default class UserSettings extends React.Component {
/>
</div>
);
- } else if (this.props.activeTab === 'developer') {
- return (
- <div>
- <DeveloperTab
- activeSection={this.props.activeSection}
- updateSection={this.props.updateSection}
- closeModal={this.props.closeModal}
- collapseModal={this.props.collapseModal}
- />
- </div>
- );
} else if (this.props.activeTab === 'display') {
return (
<div>
diff --git a/webapp/components/user_settings/user_settings_developer.jsx b/webapp/components/user_settings/user_settings_developer.jsx
deleted file mode 100644
index ae6d60362..000000000
--- a/webapp/components/user_settings/user_settings_developer.jsx
+++ /dev/null
@@ -1,138 +0,0 @@
-// 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 'actions/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(
- <div
- key='registerbtn'
- className='form-group'
- >
- <div className='col-sm-7'>
- <a
- className='btn btn-sm btn-primary'
- onClick={this.register}
- >
- <FormattedMessage
- id='user.settings.developer.register'
- defaultMessage='Register New Application'
- />
- </a>
- </div>
- </div>
- );
-
- appSection = (
- <SettingItemMax
- title={formatMessage(holders.applicationsPreview)}
- inputs={inputs}
- updateSection={function updateSection(e) {
- self.props.updateSection('');
- e.preventDefault();
- }}
- />
- );
- } else {
- appSection = (
- <SettingItemMin
- title={formatMessage(holders.applicationsPreview)}
- describe={formatMessage(holders.thirdParty)}
- updateSection={function updateSection() {
- self.props.updateSection('app');
- }}
- />
- );
- }
-
- return (
- <div>
- <div className='modal-header'>
- <button
- type='button'
- className='close'
- data-dismiss='modal'
- aria-label='Close'
- onClick={this.props.closeModal}
- >
- <span aria-hidden='true'>{'×'}</span>
- </button>
- <h4
- className='modal-title'
- ref='title'
- >
- <div className='modal-back'>
- <i
- className='fa fa-angle-left'
- onClick={this.props.collapseModal}
- />
- </div>
- <FormattedMessage
- id='user.settings.developer.title'
- defaultMessage='Developer Settings'
- />
- </h4>
- </div>
- <div className='user-settings'>
- <h3 className='tab-header'>
- <FormattedMessage
- id='user.settings.developer.title'
- defaultMessage='Developer Settings'
- />
- </h3>
- <div className='divider-dark first'/>
- {appSection}
- <div className='divider-dark'/>
- </div>
- </div>
- );
- }
-}
-
-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);
diff --git a/webapp/components/user_settings/user_settings_modal.jsx b/webapp/components/user_settings/user_settings_modal.jsx
index de4745aac..9112f8711 100644
--- a/webapp/components/user_settings/user_settings_modal.jsx
+++ b/webapp/components/user_settings/user_settings_modal.jsx
@@ -27,10 +27,6 @@ const holders = defineMessages({
id: 'user.settings.modal.notifications',
defaultMessage: 'Notifications'
},
- developer: {
- id: 'user.settings.modal.developer',
- defaultMessage: 'Developer'
- },
display: {
id: 'user.settings.modal.display',
defaultMessage: 'Display'
@@ -214,10 +210,6 @@ class UserSettingsModal extends React.Component {
tabs.push({name: 'general', uiName: formatMessage(holders.general), icon: 'icon fa fa-gear'});
tabs.push({name: 'security', uiName: formatMessage(holders.security), icon: 'icon fa fa-lock'});
tabs.push({name: 'notifications', uiName: formatMessage(holders.notifications), icon: 'icon fa fa-exclamation-circle'});
- if (global.window.mm_config.EnableOAuthServiceProvider === 'true') {
- tabs.push({name: 'developer', uiName: formatMessage(holders.developer), icon: 'icon fa fa-th'});
- }
-
tabs.push({name: 'display', uiName: formatMessage(holders.display), icon: 'icon fa fa-eye'});
tabs.push({name: 'advanced', uiName: formatMessage(holders.advanced), icon: 'icon fa fa-list-alt'});