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:
parent
1631e4ae5c
commit
02a155e7af
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user