re-introduce blinking iconAlert

This commit is contained in:
Nils Schneider 2015-03-25 10:29:41 +01:00
commit 648a8336d7
2 changed files with 23 additions and 0 deletions

View file

@ -50,6 +50,7 @@ define(function () {
var iconOnline = { color: "#1566A9", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first" }
var iconOffline = { color: "#D43E2A", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first" }
var iconAlert = { color: "#D43E2A", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first node-alert" }
var iconNew = { color: "#558020", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first" }
var groupOnline, group
@ -87,6 +88,9 @@ define(function () {
if (d.flags.online)
return iconNew
if (d.lastseen.isAfter(moment(now).subtract(1, 'days')))
return iconAlert
return iconOffline
}, gotoAnything))