mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUAC-1100: Add getActiveConnections() function to Connectable.
This commit is contained in:
@@ -102,12 +102,12 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio
|
||||
this.isExpanded = template.isExpanded;
|
||||
|
||||
/**
|
||||
* The number of currently active users for this connection. This field
|
||||
* has no meaning for a connection group, and may be null or undefined.
|
||||
* The number of currently active users for this connection or
|
||||
* connection group, if known.
|
||||
*
|
||||
* @type Number
|
||||
*/
|
||||
this.activeUsers = template.activeUsers;
|
||||
this.activeConnections = template.activeConnections;
|
||||
|
||||
/**
|
||||
* The connection or connection group whose data is exposed within
|
||||
@@ -143,8 +143,8 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio
|
||||
isConnection : true,
|
||||
isConnectionGroup : false,
|
||||
|
||||
// Count of currently active users
|
||||
activeUsers : connection.activeUsers,
|
||||
// Count of currently active connections using this connection
|
||||
activeConnections : connection.activeConnections,
|
||||
|
||||
// Wrapped item
|
||||
wrappedItem : connection
|
||||
@@ -198,6 +198,9 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio
|
||||
// Already-converted children
|
||||
children : children,
|
||||
|
||||
// Count of currently active connection groups using this connection
|
||||
activeConnections : connectionGroup.activeConnections,
|
||||
|
||||
// Wrapped item
|
||||
wrappedItem : connectionGroup
|
||||
|
||||
|
Reference in New Issue
Block a user