admin: Add buttons to navigate between teams
This commit is contained in:
parent
e9dc522a81
commit
5a6d9047c2
2 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue