1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

prevent create new availability with disabled training

This commit is contained in:
Sylvain 2017-10-10 18:17:22 +02:00
parent 0e38574ef8
commit 4d7a317315

View File

@ -312,7 +312,7 @@ Application.Controllers.controller 'CreateEventModalController', ["$scope", "$ui
$scope.machines = machinesPromise
## trainings list
$scope.trainings = trainingsPromise
$scope.trainings = trainingsPromise.filter (t) -> !t.disabled
## spaces list
$scope.spaces = spacesPromise