admin: New button to refine teams colors
This commit is contained in:
parent
485e6b0173
commit
e44cac32ac
2 changed files with 8 additions and 0 deletions
|
@ -2501,6 +2501,13 @@ angular.module("FICApp")
|
|||
$scope.addToast('danger', 'An error occurs when disabling inactive teams:', response.data.errmsg);
|
||||
});
|
||||
}
|
||||
$scope.refineTeamsColors = function () {
|
||||
$http.post("api/refine_colors").then(function () {
|
||||
$scope.teams = Team.query();
|
||||
}, function (response) {
|
||||
$scope.addToast('danger', 'An error occurs when updating teams:', response.data.errmsg);
|
||||
});
|
||||
}
|
||||
$scope.show = function (id) {
|
||||
$location.url("/teams/" + id);
|
||||
};
|
||||
|
|
Reference in a new issue