mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
GUAC-963: Add back and disconnect buttons.
This commit is contained in:
@@ -497,6 +497,20 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
return $scope.client.clientProperties.minZoom >= 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Immediately disconnects the currently-connected client, if any.
|
||||
*/
|
||||
$scope.disconnect = function disconnect() {
|
||||
|
||||
// Disconnect if client is available
|
||||
if ($scope.client)
|
||||
$scope.client.client.disconnect();
|
||||
|
||||
// Hide menu
|
||||
$scope.menuShown = false;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a progress object, as required by $scope.addNotification(), which
|
||||
* contains the given number of bytes as an appropriate combination of
|
||||
|
Reference in New Issue
Block a user