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:
parent
8ea611882b
commit
ad83d38305
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user