From 2f39d1819d4f0914c771c0b898fad10411081b60 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Sat, 26 Sep 2015 17:38:02 -0700
Subject: Fixing revoke session

---
 web/react/components/activity_log_modal.jsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'web/react/components/activity_log_modal.jsx')

diff --git a/web/react/components/activity_log_modal.jsx b/web/react/components/activity_log_modal.jsx
index 7cbd4021e..fe40385a0 100644
--- a/web/react/components/activity_log_modal.jsx
+++ b/web/react/components/activity_log_modal.jsx
@@ -25,7 +25,8 @@ export default class ActivityLogModal extends React.Component {
             clientError: null
         };
     }
-    submitRevoke(altId) {
+    submitRevoke(altId, e) {
+        e.preventDefault();
         Client.revokeSession(altId,
             function handleRevokeSuccess() {
                 AsyncClient.getSessions();
@@ -86,7 +87,7 @@ export default class ActivityLogModal extends React.Component {
                         <div>{`First time active: ${firstAccessTime.toDateString()}, ${lastAccessTime.toLocaleTimeString()}`}</div>
                         <div>{`OS: ${currentSession.props.os}`}</div>
                         <div>{`Browser: ${currentSession.props.browser}`}</div>
-                        <div>{`Session ID: ${currentSession.alt_id}`}</div>
+                        <div>{`Session ID: ${currentSession.id}`}</div>
                     </div>
                 );
             } else {
@@ -115,7 +116,7 @@ export default class ActivityLogModal extends React.Component {
                     </div>
                     <div className='activity-log__action'>
                         <button
-                            onClick={this.submitRevoke.bind(this, currentSession.alt_id)}
+                            onClick={this.submitRevoke.bind(this, currentSession.id)}
                             className='btn btn-primary'
                         >
                             Logout
-- 
cgit v1.2.3-1-g7c22

