infobox: add autoupdater state
This commit is contained in:
parent
368ca5e14a
commit
7cc653f20a
|
@ -24,6 +24,7 @@ define(function () {
|
||||||
attributeEntry(attributes, "Teil des Netzes", showFirstseen(d))
|
attributeEntry(attributes, "Teil des Netzes", showFirstseen(d))
|
||||||
attributeEntry(attributes, "Arbeitsspeicher", showRAM(d))
|
attributeEntry(attributes, "Arbeitsspeicher", showRAM(d))
|
||||||
attributeEntry(attributes, "IP Adressen", showIPs(d))
|
attributeEntry(attributes, "IP Adressen", showIPs(d))
|
||||||
|
attributeEntry(attributes, "Autom. Updates", showAutoupdate(d))
|
||||||
attributeEntry(attributes, "Clients", showClients(d))
|
attributeEntry(attributes, "Clients", showClients(d))
|
||||||
el.appendChild(attributes)
|
el.appendChild(attributes)
|
||||||
|
|
||||||
|
@ -192,5 +193,13 @@ define(function () {
|
||||||
|
|
||||||
return span
|
return span
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showAutoupdate(d) {
|
||||||
|
var au = dictGet(d.nodeinfo, ["software", "autoupdater"])
|
||||||
|
if (!au)
|
||||||
|
return
|
||||||
|
|
||||||
|
return au.enabled ? "aktiviert (" + au.branch + ")" : "deaktiviert"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue