mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-605: Use consistent event naming.
This commit is contained in:
		| @@ -244,7 +244,7 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams', | ||||
|     }); | ||||
|  | ||||
|     // Handle reconnect action | ||||
|     $scope.$on('guacStatusAction', function actionListener(event, action) { | ||||
|     $scope.$on('guacAction', function actionListener(event, action) { | ||||
|  | ||||
|         if (action === "client.action.reconnect") | ||||
|             $scope.id = uniqueId; | ||||
|   | ||||
| @@ -140,20 +140,20 @@ angular.module('client').factory('guacClientFactory', ['$rootScope', | ||||
|             $scope.safeApply(function() { | ||||
|  | ||||
|                 // Begin file download | ||||
|                 var guacFileStartEvent = $scope.$emit('guacFileStart', guacClient, stream.index, mimetype, filename); | ||||
|                 var guacFileStartEvent = $scope.$emit('guacClientFileStart', guacClient, stream.index, mimetype, filename); | ||||
|                 if (!guacFileStartEvent.defaultPrevented) { | ||||
|  | ||||
|                     var blob_reader = new Guacamole.BlobReader(stream, mimetype); | ||||
|  | ||||
|                     // Update progress as data is received | ||||
|                     blob_reader.onprogress = function onprogress() { | ||||
|                         $scope.$emit('guacFileProgress', guacClient, stream.index, mimetype, filename); | ||||
|                         $scope.$emit('guacClientFileProgress', guacClient, stream.index, mimetype, filename); | ||||
|                         stream.sendAck("Received", Guacamole.Status.Code.SUCCESS); | ||||
|                     }; | ||||
|  | ||||
|                     // When complete, prompt for download | ||||
|                     blob_reader.onend = function onend() { | ||||
|                         $scope.$emit('guacFileEnd', guacClient, stream.index, mimetype, filename); | ||||
|                         $scope.$emit('guacClientFileEnd', guacClient, stream.index, mimetype, filename); | ||||
|                     }; | ||||
|  | ||||
|                     stream.sendAck("Ready", Guacamole.Status.Code.SUCCESS); | ||||
|   | ||||
| @@ -40,7 +40,7 @@ angular.module('manage').controller('statusController', ['$scope', '$rootScope', | ||||
|         statusModal.showStatus(false); | ||||
|  | ||||
|         // Fire action event | ||||
|         $rootScope.$broadcast('guacStatusAction', action); | ||||
|         $rootScope.$broadcast('guacAction', action); | ||||
|  | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user