GUACAMOLE-723: Display connection thumbnails for all non-current active connections within the client interface.

This commit is contained in:
Michael Jumper
2018-11-12 10:13:32 -08:00
parent 57cdd2b483
commit e7eb46b2a1
3 changed files with 97 additions and 1 deletions

View File

@@ -267,6 +267,18 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
*/
$scope.client = guacClientManager.getManagedClient($routeParams.id, $routeParams.params);
/**
* All active clients which are not the current client ($scope.client).
* Each key is the ID of the connection used by that client.
*
* @type Object.<String, ManagedClient>
*/
$scope.otherClients = (function getOtherClients(clients) {
var otherClients = angular.extend({}, clients);
delete otherClients[$scope.client.id];
return otherClients;
})(guacClientManager.getManagedClients());
/**
* Map of data source identifier to the root connection group of that data
* source, or null if the connection group hierarchy has not yet been