diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/components/team_members_modal.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/components/team_members_modal.jsx')
-rw-r--r-- | webapp/components/team_members_modal.jsx | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/webapp/components/team_members_modal.jsx b/webapp/components/team_members_modal.jsx deleted file mode 100644 index 8307530c6..000000000 --- a/webapp/components/team_members_modal.jsx +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import MemberListTeam from 'components/member_list_team'; -import TeamStore from 'stores/team_store.jsx'; - -import {FormattedMessage} from 'react-intl'; - -import {Modal} from 'react-bootstrap'; - -import PropTypes from 'prop-types'; - -import React from 'react'; - -export default class TeamMembersModal extends React.Component { - constructor(props) { - super(props); - - this.teamChanged = this.teamChanged.bind(this); - this.onHide = this.onHide.bind(this); - - this.state = { - team: TeamStore.getCurrent(), - show: true - }; - } - - componentDidMount() { - TeamStore.addChangeListener(this.teamChanged); - if (this.props.onLoad) { - this.props.onLoad(); - } - } - - componentWillUnmount() { - TeamStore.removeChangeListener(this.teamChanged); - } - - teamChanged() { - this.setState({team: TeamStore.getCurrent()}); - } - - onHide() { - this.setState({show: false}); - } - - render() { - let teamDisplayName = ''; - if (this.state.team) { - teamDisplayName = this.state.team.display_name; - } - - return ( - <Modal - dialogClassName='more-modal' - show={this.state.show} - onHide={this.onHide} - onExited={this.props.onHide} - > - <Modal.Header closeButton={true}> - <Modal.Title> - <FormattedMessage - id='team_member_modal.members' - defaultMessage='{team} Members' - values={{ - team: teamDisplayName - }} - /> - </Modal.Title> - </Modal.Header> - <Modal.Body> - <MemberListTeam - isAdmin={this.props.isAdmin} - /> - </Modal.Body> - </Modal> - ); - } -} - -TeamMembersModal.propTypes = { - onHide: PropTypes.func.isRequired, - isAdmin: PropTypes.bool.isRequired, - onLoad: PropTypes.func -}; |