admin: Add buttons to navigate between teams

This commit is contained in:
nemunaire 2024-03-19 10:32:20 +01:00
parent e9dc522a81
commit 5a6d9047c2
2 changed files with 11 additions and 1 deletions

View file

@ -2364,6 +2364,12 @@ angular.module("FICApp")
$scope.teams = Team.query();
$scope.fields = ["id", "name"];
$scope.order = [];
$scope.teams.$promise.then(function(teams) {
teams.forEach(function(team) {
$scope.order.push(team.id);
});
});
$scope.validateSearch = function(keyEvent) {
if (keyEvent.which === 13) {
var myTeam = null;