Fixed violation level spelling and removed XP remnants from the player info screen
This commit is contained in:
@@ -13,12 +13,6 @@
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="btn-group btn-group-lg btn-group-justified">
|
<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">
|
<div class="btn-group">
|
||||||
<a href="http://www.steamcommunity.com/profiles/{{userid}}" target="_blank" class="btn btn-default">
|
<a href="http://www.steamcommunity.com/profiles/{{userid}}" target="_blank" class="btn btn-default">
|
||||||
<span class="glyphicon glyphicon-info-sign"></span>
|
<span class="glyphicon glyphicon-info-sign"></span>
|
||||||
|
|||||||
@@ -17,6 +17,19 @@ function PlayerInfoController( $scope, rconService, $routeParams )
|
|||||||
// set player data
|
// set player data
|
||||||
$scope.info = players[i];
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user