summaryrefslogtreecommitdiffstats
path: root/web/react/components/access_history_modal.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-10 10:20:16 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-17 11:04:31 -0500
commit0b52e85ba73e5b3badeb1703462c5d05d3a7d224 (patch)
tree0f224748c20bae18af12c3abd76a29ca6a1c1bc4 /web/react/components/access_history_modal.jsx
parent1d7c44919237f424cfd65157cc08bff42753fd0f (diff)
downloadchat-0b52e85ba73e5b3badeb1703462c5d05d3a7d224.tar.gz
chat-0b52e85ba73e5b3badeb1703462c5d05d3a7d224.tar.bz2
chat-0b52e85ba73e5b3badeb1703462c5d05d3a7d224.zip
Added Modal base class that extends ReactBootstrap.Modal
Diffstat (limited to 'web/react/components/access_history_modal.jsx')
-rw-r--r--web/react/components/access_history_modal.jsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/web/react/components/access_history_modal.jsx b/web/react/components/access_history_modal.jsx
index ab5686720..6a10f87b2 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 = ReactBootstrap.Modal;
+var Modal = require('./modal.jsx');
var UserStore = require('../stores/user_store.jsx');
var ChannelStore = require('../stores/channel_store.jsx');
var AsyncClient = require('../utils/async_client.jsx');
@@ -15,7 +15,6 @@ export default class AccessHistoryModal extends React.Component {
this.onAuditChange = this.onAuditChange.bind(this);
this.handleMoreInfo = this.handleMoreInfo.bind(this);
this.onHide = this.onHide.bind(this);
- this.onShow = this.onShow.bind(this);
this.formatAuditInfo = this.formatAuditInfo.bind(this);
this.handleRevokedSession = this.handleRevokedSession.bind(this);
@@ -44,11 +43,6 @@ export default class AccessHistoryModal extends React.Component {
componentDidMount() {
UserStore.addAuditsChangeListener(this.onAuditChange);
}
- componentDidUpdate(prevProps) {
- if (this.props.show && !prevProps.show) {
- this.onShow();
- }
- }
componentWillUnmount() {
UserStore.removeAuditsChangeListener(this.onAuditChange);
}
@@ -391,6 +385,7 @@ export default class AccessHistoryModal extends React.Component {
<Modal
show={this.props.show}
onHide={this.onHide}
+ onShow={this.onShow}
bsSize='large'
>
<Modal.Header closeButton={true}>