Remove content if no session exists.
This commit is contained in:
parent
10f13cb618
commit
fa653b3743
1 changed files with 4 additions and 0 deletions
|
@ -115,6 +115,10 @@ class App.OnlineNotificationWidget extends App.Controller
|
|||
App.OnlineNotification.fetchFull(load)
|
||||
|
||||
updateContent: =>
|
||||
if !@Session.get()
|
||||
$('.js-notificationsContainer .popover-content').html('')
|
||||
return
|
||||
|
||||
items = App.OnlineNotification.search(sortBy: 'created_at', order: 'DESC')
|
||||
counter = 0
|
||||
for item in items
|
||||
|
|
Loading…
Reference in a new issue