1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

hide disabled spaces & machines in public calendar

This commit is contained in:
Sylvain 2017-10-11 15:18:44 +02:00
parent f8f45bcb69
commit 1631e4ae5c

View File

@ -24,10 +24,10 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$
$scope.trainings = trainingsPromise.filter (t) -> !t.disabled
## List of machines
$scope.machines = machinesPromise
$scope.machines = machinesPromise.filter (t) -> !t.disabled
## List of spaces
$scope.spaces = spacesPromise
$scope.spaces = spacesPromise.filter (t) -> !t.disabled
## add availabilities source to event sources
$scope.eventSources = []