diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-17 16:10:16 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-17 16:14:00 -0500 |
commit | 70de0125abdc84d70580f82b29a4314e3515a587 (patch) | |
tree | f6e76ac51d8c1534cd61abdcf1224673b25c0f6f /web/react/components/access_history_modal.jsx | |
parent | 3d572be2f3bb0d4b6b2eb83b69a209234f807231 (diff) | |
download | chat-70de0125abdc84d70580f82b29a4314e3515a587.tar.gz chat-70de0125abdc84d70580f82b29a4314e3515a587.tar.bz2 chat-70de0125abdc84d70580f82b29a4314e3515a587.zip |
Removed Modal base class
Diffstat (limited to 'web/react/components/access_history_modal.jsx')
-rw-r--r-- | web/react/components/access_history_modal.jsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/web/react/components/access_history_modal.jsx b/web/react/components/access_history_modal.jsx index 8306a4e8c..65b80dfb7 100644 --- a/web/react/components/access_history_modal.jsx +++ b/web/react/components/access_history_modal.jsx @@ -1,7 +1,7 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -var Modal = require('./modal.jsx'); +var Modal = ReactBootstrap.Modal; var UserStore = require('../stores/user_store.jsx'); var ChannelStore = require('../stores/channel_store.jsx'); var AsyncClient = require('../utils/async_client.jsx'); @@ -43,6 +43,15 @@ export default class AccessHistoryModal extends React.Component { } componentDidMount() { UserStore.addAuditsChangeListener(this.onAuditChange); + + if (this.props.show) { + this.onShow(); + } + } + componentDidUpdate(prevProps) { + if (this.props.show && !prevProps.show) { + this.onShow(); + } } componentWillUnmount() { UserStore.removeAuditsChangeListener(this.onAuditChange); @@ -386,7 +395,6 @@ export default class AccessHistoryModal extends React.Component { <Modal show={this.props.show} onHide={this.onHide} - onShow={this.onShow} bsSize='large' > <Modal.Header closeButton={true}> |