mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
prevent create availabilities for disabled machines
This commit is contained in:
parent
45465e8b59
commit
0ab01091cd
@ -309,7 +309,7 @@ Application.Controllers.controller 'CreateEventModalController', ["$scope", "$ui
|
||||
$scope.end = end
|
||||
|
||||
## machines list
|
||||
$scope.machines = machinesPromise
|
||||
$scope.machines = machinesPromise.filter (t) -> !t.disabled
|
||||
|
||||
## trainings list
|
||||
$scope.trainings = trainingsPromise.filter (t) -> !t.disabled
|
||||
|
Loading…
x
Reference in New Issue
Block a user