Archived
1
0

update mod ui

This commit is contained in:
Jeff Becker 2016-03-12 11:24:04 -05:00
parent 8181d174a5
commit 9a75911ab7
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -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);