1
0
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:
Sylvain 2017-10-11 13:02:54 +02:00
parent 45465e8b59
commit 0ab01091cd

View File

@ -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