mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
Display active status of connections.
This commit is contained in:
@@ -463,6 +463,14 @@ GuacUI.Connection = function(connection) {
|
||||
caption.appendChild(protocol);
|
||||
caption.appendChild(name);
|
||||
|
||||
// Add active usages (if any)
|
||||
var active_users = connection.currentUsage();
|
||||
if (active_users > 0) {
|
||||
var usage = GuacUI.createChildElement(caption, "span", "usage");
|
||||
usage.textContent = "Currently in use by " + active_users + " user(s)";
|
||||
GuacUI.addClass(element, "in-use");
|
||||
}
|
||||
|
||||
// Assemble connection icon
|
||||
element.appendChild(thumbnail);
|
||||
element.appendChild(caption);
|
||||
|
Reference in New Issue
Block a user