summaryrefslogtreecommitdiffstats
path: root/web/react/components/access_history_modal.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-10 11:54:43 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-17 11:04:31 -0500
commit590e7f903f3b911566465b2fb51ff68c273ded96 (patch)
tree02ac280ef7b2afd8508f548b4df7a99eb79adc99 /web/react/components/access_history_modal.jsx
parent9cdf820f7b154b312d5022fec20754141b0d8476 (diff)
downloadchat-590e7f903f3b911566465b2fb51ff68c273ded96.tar.gz
chat-590e7f903f3b911566465b2fb51ff68c273ded96.tar.bz2
chat-590e7f903f3b911566465b2fb51ff68c273ded96.zip
Renamed onModalDismissed to onHide to keep it consistent with React-Bootstrap
Diffstat (limited to 'web/react/components/access_history_modal.jsx')
-rw-r--r--web/react/components/access_history_modal.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/react/components/access_history_modal.jsx b/web/react/components/access_history_modal.jsx
index 6a10f87b2..8306a4e8c 100644
--- a/web/react/components/access_history_modal.jsx
+++ b/web/react/components/access_history_modal.jsx
@@ -14,6 +14,7 @@ export default class AccessHistoryModal extends React.Component {
this.onAuditChange = this.onAuditChange.bind(this);
this.handleMoreInfo = this.handleMoreInfo.bind(this);
+ this.onShow = this.onShow.bind(this);
this.onHide = this.onHide.bind(this);
this.formatAuditInfo = this.formatAuditInfo.bind(this);
this.handleRevokedSession = this.handleRevokedSession.bind(this);
@@ -38,7 +39,7 @@ export default class AccessHistoryModal extends React.Component {
}
onHide() {
this.setState({moreInfo: []});
- this.props.onModalDismissed();
+ this.props.onHide();
}
componentDidMount() {
UserStore.addAuditsChangeListener(this.onAuditChange);
@@ -401,5 +402,5 @@ export default class AccessHistoryModal extends React.Component {
AccessHistoryModal.propTypes = {
show: React.PropTypes.bool.isRequired,
- onModalDismissed: React.PropTypes.func.isRequired
+ onHide: React.PropTypes.func.isRequired
};