|
|
@@ -118,48 +118,52 @@
|
|
|
<h3 class="page-heading">Sessions</h3>
|
|
|
|
|
|
<div class="gf-form-group">
|
|
|
- <table class="filter-table form-inline">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Last seen</th>
|
|
|
- <th>Logged on</th>
|
|
|
- <th>IP address</th>
|
|
|
- <th>Browser & OS</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr ng-repeat="session in sessions">
|
|
|
- <td ng-if="session.isActive">Now</td>
|
|
|
- <td ng-if="!session.isActive">{{session.seenAt}}</td>
|
|
|
- <td>{{session.createdAt}}</td>
|
|
|
- <td>{{session.clientIp}}</td>
|
|
|
- <td>{{session.browser}} on {{session.os}} {{session.osVersion}}</td>
|
|
|
- <td>
|
|
|
- <button class="btn btn-danger btn-small" ng-click="revokeUserSession(session.id)">
|
|
|
- <i class="fa fa-power-off"></i>
|
|
|
- </button>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <div class="gf-form">
|
|
|
+ <table class="filter-table form-inline">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Last seen</th>
|
|
|
+ <th>Logged on</th>
|
|
|
+ <th>IP address</th>
|
|
|
+ <th>Browser & OS</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr ng-repeat="session in sessions">
|
|
|
+ <td ng-if="session.isActive">Now</td>
|
|
|
+ <td ng-if="!session.isActive">{{session.seenAt}}</td>
|
|
|
+ <td>{{session.createdAt}}</td>
|
|
|
+ <td>{{session.clientIp}}</td>
|
|
|
+ <td>{{session.browser}} on {{session.os}} {{session.osVersion}}</td>
|
|
|
+ <td>
|
|
|
+ <button class="btn btn-danger btn-small" ng-click="revokeUserSession(session.id)">
|
|
|
+ <i class="fa fa-power-off"></i>
|
|
|
+ </button>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="gf-form-button-row">
|
|
|
+ <button ng-if="sessions.length" class="btn btn-danger" ng-click="revokeAllUserSessions()">
|
|
|
+ Logout user from all devices
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
- <button ng-if="sessions.length" class="btn btn-danger" ng-click="revokeAllUserSessions()">
|
|
|
- Logout user from all devices
|
|
|
- </button>
|
|
|
|
|
|
- <div class="gf-form-group">
|
|
|
- <h3 class="page-heading">User status</h3>
|
|
|
+ <h3 class="page-heading">User status</h3>
|
|
|
|
|
|
+ <div class="gf-form-group">
|
|
|
<div class="gf-form-button-row">
|
|
|
<button
|
|
|
type="submit"
|
|
|
class="btn btn-danger"
|
|
|
ng-if="!user.isDisabled"
|
|
|
ng-click="disableUser($event)"
|
|
|
- bs-tooltip="user.authModule ? 'External user cannot be activated or deactivated' : ''"
|
|
|
- ng-class="{'disabled': user.authModule}"
|
|
|
+ bs-tooltip="user.isExternal ? 'External user cannot be enabled or disabled' : ''"
|
|
|
+ ng-class="{'disabled': user.isExternal}"
|
|
|
>
|
|
|
Disable
|
|
|
</button>
|
|
|
@@ -168,8 +172,8 @@
|
|
|
class="btn btn-primary"
|
|
|
ng-if="user.isDisabled"
|
|
|
ng-click="disableUser($event)"
|
|
|
- bs-tooltip="user.authModule ? 'External user cannot be activated or deactivated' : ''"
|
|
|
- ng-class="{'disabled': user.authModule}"
|
|
|
+ bs-tooltip="user.isExternal ? 'External user cannot be enabled or disabled' : ''"
|
|
|
+ ng-class="{'disabled': user.isExternal}"
|
|
|
>
|
|
|
Enable
|
|
|
</button>
|