mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
click slot to show machine fetch
This commit is contained in:
parent
2b08cc8594
commit
1fc4439df8
@ -45,6 +45,9 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$
|
||||
else
|
||||
if event.available_type == 'event'
|
||||
$state.go('app.public.events_show', {id: event.event_id})
|
||||
else if event.available_type == 'training'
|
||||
else
|
||||
$state.go('app.public.machines_show', {id: event.machine_id})
|
||||
|
||||
## agendaDay view: disable slotEventOverlap
|
||||
## agendaWeek view: enable slotEventOverlap
|
||||
|
@ -32,8 +32,9 @@ json.array!(@availabilities) do |availability|
|
||||
json.borderColor availability_border_color(availability)
|
||||
end
|
||||
|
||||
# machine slot object
|
||||
# machine slot object ( here => availability = slot )
|
||||
else
|
||||
json.machine_id availability.machine.id
|
||||
json.borderColor machines_slot_border_color(availability)
|
||||
json.tag_ids availability.availability.tag_ids
|
||||
json.tags availability.availability.tags do |t|
|
||||
|
Loading…
Reference in New Issue
Block a user