1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-22 13:19:50 +01:00

prevent book full event

This commit is contained in:
Sylvain 2017-02-23 11:24:44 +01:00
parent 8ea611882b
commit ad83d38305

View File

@ -227,7 +227,7 @@ Application.Directives.directive 'cart', [ '$rootScope', '$uibModal', 'dialogs',
##
slotSelectionChanged = ->
if $scope.slot
if !$scope.slot.is_reserved && !$scope.events.modifiable
if not $scope.slot.is_reserved and not $scope.events.modifiable and not $scope.slot.is_completed
# slot is not reserved and we are not currently modifying a slot
# -> can be added to cart or removed if already present
index = $scope.events.reserved.indexOf($scope.slot)