admin: New button to refine teams colors

This commit is contained in:
nemunaire 2025-03-26 14:47:34 +01:00
parent 485e6b0173
commit e44cac32ac
2 changed files with 8 additions and 0 deletions

View file

@ -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);
};