make broadcasts icon change color

This commit is contained in:
Lisa P 2015-10-20 15:53:33 +02:00
parent 8bf917984c
commit 99e3864acd

View File

@ -70,6 +70,10 @@ Controller = Ember.Controller.extend
seenBroadcasts.push(id)
Travis.storage.setItem('travis.seen_broadcasts', JSON.stringify(seenBroadcasts))
@get('broadcasts.content').removeObject(broadcast)
unless @get('broadcasts.content').length
@set('broadcasts.lastBroadcastStatus', '')
else
@set('broadcasts.lastBroadcastStatus', @get('broadcasts.content')[0].category)
return false
}