summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-04 14:11:48 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-04 14:11:47 -0500
commit635628cf30460a75d3a870394ad66db91f3bea9f (patch)
tree17d40987fab0876c6dc95acec7f82b4f3eb36c01 /webapp/components
parentb3f2ab654e95325b556e0c93b41ea6e15e45fffe (diff)
downloadchat-635628cf30460a75d3a870394ad66db91f3bea9f.tar.gz
chat-635628cf30460a75d3a870394ad66db91f3bea9f.tar.bz2
chat-635628cf30460a75d3a870394ad66db91f3bea9f.zip
Removing old signup team API (#4950)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/signup_team_complete/components/signup_team_complete.jsx81
1 files changed, 0 insertions, 81 deletions
diff --git a/webapp/components/signup_team_complete/components/signup_team_complete.jsx b/webapp/components/signup_team_complete/components/signup_team_complete.jsx
deleted file mode 100644
index 78c591375..000000000
--- a/webapp/components/signup_team_complete/components/signup_team_complete.jsx
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import BrowserStore from 'stores/browser_store.jsx';
-
-import {FormattedMessage} from 'react-intl';
-
-import React from 'react';
-import {Link, browserHistory} from 'react-router/es6';
-
-export default class SignupTeamComplete extends React.Component {
- constructor(props) {
- super(props);
-
- this.updateParent = this.updateParent.bind(this);
- }
- componentWillMount() {
- const data = JSON.parse(this.props.location.query.d);
- this.hash = this.props.location.query.h;
-
- var initialState = BrowserStore.getGlobalItem(this.hash);
-
- if (!initialState) {
- initialState = {};
- initialState.wizard = 'welcome';
- initialState.team = {};
- initialState.team.email = data.email;
- initialState.team.allowed_domains = '';
- initialState.invites = [];
- initialState.invites.push('');
- initialState.invites.push('');
- initialState.invites.push('');
- initialState.user = {};
- initialState.hash = this.hash;
- initialState.data = this.props.location.query.d;
- }
-
- this.setState(initialState);
- }
- componentDidMount() {
- browserHistory.push('/signup_team_complete/welcome');
- }
- updateParent(state, skipSet) {
- BrowserStore.setGlobalItem(this.hash, state);
-
- if (!skipSet) {
- this.setState(state);
- browserHistory.push('/signup_team_complete/' + state.wizard);
- }
- }
- render() {
- return (
- <div>
- <div className='signup-header'>
- <Link to='/'>
- <span className='fa fa-chevron-left'/>
- <FormattedMessage id='web.header.back'/>
- </Link>
- </div>
- <div className='col-sm-12'>
- <div className='signup-team__container'>
- <div id='signup-team-complete'>
- {React.cloneElement(this.props.children, {
- state: this.state,
- updateParent: this.updateParent
- })}
- </div>
- </div>
- </div>
- </div>
- );
- }
-}
-
-SignupTeamComplete.defaultProps = {
-};
-
-SignupTeamComplete.propTypes = {
- location: React.PropTypes.object,
- children: React.PropTypes.node
-};