Changes alert badges colors on the basis of severity

Implements #829
This commit is contained in:
Simone Mainardi 2016-11-25 12:46:25 +01:00
parent 5929f80b19
commit a8c00f785d
6 changed files with 64 additions and 21 deletions

View file

@ -39,8 +39,10 @@ function dumpInterfaceStats(interface_name)
end
if prefs.are_alerts_enabled == true then
res["alerts"] = interface.getCachedNumAlerts(false--[[ not engaged --]])
res["engaged_alerts"] = interface.getCachedNumAlerts(true --[[ engaged --]])
local alert_cache = interface.getCachedNumAlerts()
res["alerts"] = alert_cache["num_alerts"]
res["engaged_alerts"] = alert_cache["num_alerts_engaged"]
res["error_level_alerts"] = alert_cache["error_level_alerts"]
end