From 0ab01091cd87dda30e29b46bbf466c351ae7b549 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 11 Oct 2017 13:02:54 +0200 Subject: [PATCH] prevent create availabilities for disabled machines --- app/assets/javascripts/controllers/admin/calendar.coffee.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/controllers/admin/calendar.coffee.erb b/app/assets/javascripts/controllers/admin/calendar.coffee.erb index 89e1de49b..9747a547b 100644 --- a/app/assets/javascripts/controllers/admin/calendar.coffee.erb +++ b/app/assets/javascripts/controllers/admin/calendar.coffee.erb @@ -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