Fixed not shown initial ticket customer avatar.
This commit is contained in:
parent
02f760a627
commit
886618dfec
1 changed files with 5 additions and 5 deletions
|
@ -350,15 +350,15 @@ class App.TicketZoom extends App.Controller
|
||||||
|
|
||||||
# rerender whole sidebar if customer or organization has changed
|
# rerender whole sidebar if customer or organization has changed
|
||||||
if @ticketLastAttributes.customer_id isnt @ticket.customer_id || @ticketLastAttributes.organization_id isnt @ticket.organization_id
|
if @ticketLastAttributes.customer_id isnt @ticket.customer_id || @ticketLastAttributes.organization_id isnt @ticket.organization_id
|
||||||
new App.WidgetAvatar(
|
|
||||||
el: elLocal.find('.ticketZoom-header .js-avatar')
|
|
||||||
user_id: @ticket.customer_id
|
|
||||||
size: 50
|
|
||||||
)
|
|
||||||
if elLocal
|
if elLocal
|
||||||
el = elLocal
|
el = elLocal
|
||||||
else
|
else
|
||||||
el = @el
|
el = @el
|
||||||
|
new App.WidgetAvatar(
|
||||||
|
el: el.find('.ticketZoom-header .js-avatar')
|
||||||
|
user_id: @ticket.customer_id
|
||||||
|
size: 50
|
||||||
|
)
|
||||||
@sidebar = new App.TicketZoomSidebar(
|
@sidebar = new App.TicketZoomSidebar(
|
||||||
el: el.find('.tabsSidebar')
|
el: el.find('.tabsSidebar')
|
||||||
sidebarState: @sidebarState
|
sidebarState: @sidebarState
|
||||||
|
|
Loading…
Reference in a new issue