From e1f5086877c22502710bf6919a848623c5d1b171 Mon Sep 17 00:00:00 2001
From: Lisa P <mail@lislis.de>
Date: Thu, 22 Oct 2015 21:41:29 +0200
Subject: [PATCH] also apply new logic to update method

---
 app/controllers/top.coffee | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/controllers/top.coffee b/app/controllers/top.coffee
index ee3b9c51..2ef7b273 100644
--- a/app/controllers/top.coffee
+++ b/app/controllers/top.coffee
@@ -82,7 +82,10 @@ Controller = Ember.Controller.extend
       unless @get('broadcasts.content').length
         @set('broadcasts.lastBroadcastStatus', '')
       else
-        @set('broadcasts.lastBroadcastStatus', @get('broadcasts.content')[0].category)
+        if @get('broadcasts.content').findBy('category', 'warning')
+          @set('broadcasts.lastBroadcastStatus', 'warning')
+        else if @get('broadcasts.content').findBy('category', 'announcement')
+          @set('broadcasts.lastBroadcastStatus', 'announcement')
       return false
   }