Only start avatar widget on existing session.
This commit is contained in:
parent
9f035fb7af
commit
87b2d0f83d
|
@ -86,11 +86,13 @@ class App.Navigation extends App.Controller
|
||||||
active_tab: active_tab
|
active_tab: active_tab
|
||||||
)
|
)
|
||||||
|
|
||||||
new App.WidgetAvatar(
|
# only start avatar widget on existing session
|
||||||
el: @$('.js-avatar')
|
if App.Session.get('id')
|
||||||
user_id: App.Session.get('id')
|
new App.WidgetAvatar(
|
||||||
noPopups: true
|
el: @$('.js-avatar')
|
||||||
)
|
user_id: App.Session.get('id')
|
||||||
|
noPopups: true
|
||||||
|
)
|
||||||
|
|
||||||
renderResult: (result = []) =>
|
renderResult: (result = []) =>
|
||||||
el = @$('#global-search-result')
|
el = @$('#global-search-result')
|
||||||
|
|
Loading…
Reference in a new issue