Remove description in content exists.

This commit is contained in:
Martin Edenhofer 2015-08-31 11:06:42 +02:00
parent afa974a5da
commit 4e35d9b3cc

View file

@ -38,10 +38,15 @@ class App.DashboardActivityStream extends App.Controller
@render(items)
render: (items) ->
# show description of activity stream
if _.isEmpty(items)
@$('.activity-description').removeClass('hidden')
return
# remove description of activity stream
@$('.activity-description').remove()
items = @prepareForObjectList(items)
html = $('<div class="activity-entries"></div>')