[TASK] No link color for unavilable nodes
This commit is contained in:
parent
f1ee1311e2
commit
7326bd7673
@ -333,14 +333,17 @@ define(["chroma-js", "moment", "tablesort", "helper", "moment.de"],
|
|||||||
tr.appendChild(td1);
|
tr.appendChild(td1);
|
||||||
|
|
||||||
var td2 = document.createElement("td");
|
var td2 = document.createElement("td");
|
||||||
var a1 = document.createElement("a");
|
|
||||||
a1.classList.add(d.link.target.node.flags.online ? "online" : "unseen");
|
|
||||||
a1.textContent = unknown ? d.id : d.node.nodeinfo.hostname;
|
|
||||||
if (!unknown) {
|
if (!unknown) {
|
||||||
|
var a1 = document.createElement("a");
|
||||||
|
a1.textContent = d.node.nodeinfo.hostname;
|
||||||
|
a1.classList.add("online");
|
||||||
a1.href = "#";
|
a1.href = "#";
|
||||||
}
|
|
||||||
a1.onclick = router.node(d.node);
|
a1.onclick = router.node(d.node);
|
||||||
td2.appendChild(a1);
|
td2.appendChild(a1);
|
||||||
|
} else {
|
||||||
|
td2.textContent = d.id;
|
||||||
|
}
|
||||||
|
|
||||||
tr.appendChild(td2);
|
tr.appendChild(td2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user