mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUAC-932: Save thumbnail upon disconnect.
This commit is contained in:
		| @@ -265,9 +265,6 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams', | ||||
|     // Show status dialog when client errors occur | ||||
|     $scope.$on('guacClientError', function clientErrorListener(event, client, status) { | ||||
|  | ||||
|         // Disconnect | ||||
|         $scope.id = null; | ||||
|  | ||||
|         // Determine translation name of error | ||||
|         var errorName = (status in CLIENT_ERRORS) ? status.toString(16).toUpperCase() : "DEFAULT"; | ||||
|  | ||||
| @@ -293,6 +290,10 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams', | ||||
|  | ||||
|         // Show new status only if disconnected | ||||
|         if (status === "closed") { | ||||
|  | ||||
|             // Disconnect | ||||
|             $scope.id = null; | ||||
|  | ||||
|             $scope.showStatus({ | ||||
|                 title: "client.status.closedStatusTitle", | ||||
|                 text: "client.status.tunnelStates." + status | ||||
| @@ -304,9 +305,6 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams', | ||||
|     // Show status dialog when tunnel errors occur | ||||
|     $scope.$on('guacTunnelError', function tunnelErrorListener(event, tunnel, status) { | ||||
|  | ||||
|         // Disconnect | ||||
|         $scope.id = null; | ||||
|  | ||||
|         // Determine translation name of error | ||||
|         var errorName = (status in TUNNEL_ERRORS) ? status.toString(16).toUpperCase() : "DEFAULT"; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user