Merge pull request #19 from Dids/gh-pages

Removed XP remnants and fixed violation level spelling
This commit is contained in:
Garry Newman
2017-03-27 15:57:36 +01:00
committed by GitHub
2 changed files with 13 additions and 6 deletions
-6
View File
@@ -13,12 +13,6 @@
</h2>
<div class="btn-group btn-group-lg btn-group-justified">
<div class="btn-group">
<a href="#/{{address}}/player/{{userid}}/xp" class="btn btn-default">
<span class="glyphicon glyphicon-education"></span>
XP Info
</a>
</div>
<div class="btn-group">
<a href="http://www.steamcommunity.com/profiles/{{userid}}" target="_blank" class="btn btn-default">
<span class="glyphicon glyphicon-info-sign"></span>
+13
View File
@@ -17,6 +17,19 @@ function PlayerInfoController( $scope, rconService, $routeParams )
// set player data
$scope.info = players[i];
// remove xp remnants
if ($scope.info['CurrentLevel'] !== undefined)
delete $scope.info['CurrentLevel'];
if ($scope.info['UnspentXp'] !== undefined)
delete $scope.info['UnspentXp'];
// fix violation level
if ($scope.info['VoiationLevel'] !== undefined){
var violationLevel = $scope.info['VoiationLevel'];
delete $scope.info['VoiationLevel'];
$scope.info['ViolationLevel'] = violationLevel;
}
return;
}
}