GUAC-963: Add back and disconnect buttons.

This commit is contained in:
Michael Jumper
2014-12-29 21:24:37 -08:00
parent 17f272689b
commit 42f360a02b
4 changed files with 36 additions and 13 deletions

View File

@@ -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