WIP.
This commit is contained in:
parent
3e0f5caffe
commit
233198ffd6
1 changed files with 7 additions and 6 deletions
|
@ -75,9 +75,9 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
|
||||||
assets = {}
|
assets = {}
|
||||||
overview = Overview.lookup(id: index[:overview][:id])
|
overview = Overview.lookup(id: index[:overview][:id])
|
||||||
meta = {
|
meta = {
|
||||||
name: overview.name,
|
name: overview.name,
|
||||||
prio: overview.prio,
|
prio: overview.prio,
|
||||||
link: overview.link,
|
link: overview.link,
|
||||||
count: index[:count],
|
count: index[:count],
|
||||||
}
|
}
|
||||||
indexes.push meta
|
indexes.push meta
|
||||||
|
@ -86,7 +86,7 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
|
||||||
@client.log "push overview_index for user #{@user.id}"
|
@client.log "push overview_index for user #{@user.id}"
|
||||||
@client.send(
|
@client.send(
|
||||||
event: 'ticket_overview_index',
|
event: 'ticket_overview_index',
|
||||||
data: indexes,
|
data: indexes,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -111,6 +111,7 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
|
||||||
|
|
||||||
ticket = Ticket.lookup(id: ticket_meta[:id])
|
ticket = Ticket.lookup(id: ticket_meta[:id])
|
||||||
next if !ticket
|
next if !ticket
|
||||||
|
|
||||||
assets = asset_push(ticket, assets)
|
assets = asset_push(ticket, assets)
|
||||||
end
|
end
|
||||||
data[:assets] = assets
|
data[:assets] = assets
|
||||||
|
@ -118,7 +119,7 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
|
||||||
if !@client
|
if !@client
|
||||||
result = {
|
result = {
|
||||||
event: 'ticket_overview_list',
|
event: 'ticket_overview_list',
|
||||||
data: data,
|
data: data,
|
||||||
}
|
}
|
||||||
results.push result
|
results.push result
|
||||||
else
|
else
|
||||||
|
@ -127,7 +128,7 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
|
||||||
# send update to browser
|
# send update to browser
|
||||||
@client.send(
|
@client.send(
|
||||||
event: 'ticket_overview_list',
|
event: 'ticket_overview_list',
|
||||||
data: data,
|
data: data,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue