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

prevent create availability for disabled space

This commit is contained in:
Sylvain 2017-10-11 15:23:42 +02:00
parent 1631e4ae5c
commit 02a155e7af

View File

@ -309,13 +309,13 @@ Application.Controllers.controller 'CreateEventModalController', ["$scope", "$ui
$scope.end = end
## machines list
$scope.machines = machinesPromise.filter (t) -> !t.disabled
$scope.machines = machinesPromise.filter (m) -> !m.disabled
## trainings list
$scope.trainings = trainingsPromise.filter (t) -> !t.disabled
## spaces list
$scope.spaces = spacesPromise
$scope.spaces = spacesPromise.filter (s) -> !s.disabled
## machines associated with the created slot
$scope.selectedMachines = []