Added ServerInfo Page

ConnectionController.Connect redirects automatically to ServerInfo
This commit is contained in:
alexfriesen
2016-04-30 19:07:44 +02:00
parent c9b2ee8335
commit 4087a9f591
5 changed files with 130 additions and 32 deletions
+20
View File
@@ -0,0 +1,20 @@
app.controller( 'ServerInfoController', ServerInfoController );
function ServerInfoController( $scope, rconService, $routeParams )
{
$scope.info = {};
$scope.Refresh = function ()
{
rconService.Request( 'serverinfo', $scope, function ( msg )
{
$scope.info = JSON.parse( msg.Message );
// $scope.Players = JSON.parse( msg.Message );
console.log($scope.info);
});
}
rconService.InstallService( $scope, $scope.Refresh );
}