update mod ui to have more details
This commit is contained in:
parent
93b452c497
commit
0bc6298cc0
@ -146,6 +146,7 @@ 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("span");
|
var auth = document.createElement("span");
|
||||||
|
auth.appendChild(document.createTextNode("Connection: "));
|
||||||
// authentication state
|
// authentication state
|
||||||
if (j.authed) {
|
if (j.authed) {
|
||||||
auth.setAttribute("class", "authed");
|
auth.setAttribute("class", "authed");
|
||||||
@ -157,14 +158,15 @@ function createConnectionElement(j) {
|
|||||||
|
|
||||||
// connection mode
|
// connection mode
|
||||||
var mode = document.createElement("span");
|
var mode = document.createElement("span");
|
||||||
mode.appendChild(document.createTextNode("mode"));
|
mode.setAttribute("class", "mode");
|
||||||
mode.appendChild(document.createTextNode(j.mode));
|
mode.appendChild(document.createTextNode("mode: "+j.mode));
|
||||||
e.appendChild(mode);
|
e.appendChild(mode);
|
||||||
|
|
||||||
var pending = document.createElement("div");
|
var pending = document.createElement("div");
|
||||||
pending.setAttribute("class", "pending");
|
pending.setAttribute("class", "pending");
|
||||||
// pending articles
|
// pending articles
|
||||||
var articles = Object.keys(j.pending);
|
var articles = Object.keys(j.pending);
|
||||||
|
pending.appendChild(document.createTextNode("pending articles: "+articles.length));
|
||||||
for ( var idx = 0 ; idx < articles.length; idx ++ ) {
|
for ( var idx = 0 ; idx < articles.length; idx ++ ) {
|
||||||
var msgid = articles[idx];
|
var msgid = articles[idx];
|
||||||
var state = j.pending[msgid];
|
var state = j.pending[msgid];
|
||||||
|
Reference in New Issue
Block a user