KEYCLOAK-891 Create server info page on admin console

This commit is contained in:
Stian Thorgersen 2014-12-17 13:24:47 +01:00
parent 6cf42db584
commit e42fe6fb23
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,9 @@ module.controller('GlobalCtrl', function($scope, $http, Auth, WhoAmI, Current, $
$scope.authUrl = authUrl;
$scope.auth = Auth;
$scope.serverInfo = ServerInfo.get();
$scope.serverInfoUpdate = function() {
$scope.serverInfo = ServerInfo.get();
};
WhoAmI.get(function (data) {
Auth.user = data;

View file

@ -12,7 +12,7 @@
</tr>
<tr>
<td>Server Time</td>
<td>{{serverInfo.serverTime}}</td>
<td>{{serverInfo.serverTime}} (<a data-ng-click="serverInfoUpdate()">update</a>)</td>
</tr>
<tr>
<td>Providers</td>