add user locked key to list view #6985

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2025-04-21 17:38:12 +01:00
parent c6928846d0
commit 11ae3775d3
3 changed files with 5772 additions and 5751 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5187,7 +5187,11 @@
if (i > 0) { su = u.substring(i + 1); }
su = EscapeHtml(su);
if (su.length > 15) { su = su.substring(0, 14) + '&#8230;'; }
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
if (node.lusers && node.lusers.length > 0) {
return addKeyLinkConditional(EscapeHtml(su), EscapeHtml(u) + " " + "(" + "Locked" + ")", (node.lusers && node.lusers.indexOf(u) >= 0));
} else {
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
}
}
function autoConnectDesktops() { if (Q('autoConnectDesktopCheckbox').checked == true) { connectAllKvmFunction(); } }

View File

@ -5696,7 +5696,11 @@
if (i > 0) { su = u.substring(i + 1); }
su = EscapeHtml(su);
if (su.length > 15) { su = su.substring(0, 14) + '&#8230;'; }
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
if (node.lusers && node.lusers.length > 0) {
return addKeyLinkConditional(EscapeHtml(su), EscapeHtml(u) + " " + "(" + "Locked" + ")", (node.lusers && node.lusers.indexOf(u) >= 0));
} else {
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
}
}
function autoConnectDesktops() { if (Q('autoConnectDesktopCheckbox').checked == true) { connectAllKvmFunction(); } }