mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 06:31:22 +00:00
GUAC-1126: Add client-specific disconnect action to menu. Style with danger.
This commit is contained in:
@@ -544,6 +544,19 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Action which immediately disconnects the currently-connected client, if
|
||||
* any.
|
||||
*/
|
||||
var DISCONNECT_MENU_ACTION = {
|
||||
name : 'CLIENT.ACTION_DISCONNECT',
|
||||
className : 'danger disconnect',
|
||||
callback : $scope.disconnect
|
||||
};
|
||||
|
||||
// Set client-specific menu actions
|
||||
$scope.clientMenuActions = [ DISCONNECT_MENU_ACTION ];
|
||||
|
||||
// Clean up when view destroyed
|
||||
$scope.$on('$destroy', function clientViewDestroyed() {
|
||||
|
||||
|
Reference in New Issue
Block a user