update mod ui
This commit is contained in:
parent
8181d174a5
commit
9a75911ab7
@ -146,13 +146,13 @@ function createConnectionElement(j) {
|
|||||||
var e = document.createElement("div");
|
var e = document.createElement("div");
|
||||||
e.setAttribute("class", "connection");
|
e.setAttribute("class", "connection");
|
||||||
var auth = document.createElement("div");
|
var auth = document.createElement("div");
|
||||||
auth.appendChild(document.createTextNode("Connection: "));
|
auth.appendChild(document.createTextNode("Connection: "+j.name));
|
||||||
// authentication state
|
// authentication state
|
||||||
if (j.authed) {
|
if (j.authed) {
|
||||||
auth.setAttribute("class", "authed");
|
auth.setAttribute("class", "authed");
|
||||||
auth.appendChild(document.createTextNode("authenticated"));
|
auth.appendChild(document.createTextNode("(authenticated)"));
|
||||||
} else {
|
} else {
|
||||||
auth.appendChild(document.createTextNode("not authenticated"));
|
auth.appendChild(document.createTextNode("(not authenticated)"));
|
||||||
}
|
}
|
||||||
e.appendChild(auth);
|
e.appendChild(auth);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user