GUAC-963: Add back and disconnect buttons.
This commit is contained in:
1 parent
17f272689b
commit
42f360a02b
4 files changed
+36
-13
No files matched your search
@@ -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