mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-526: Only pull primary connection for sharing profile once identifier is known.
This commit is contained in:
		| @@ -261,11 +261,12 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|     $scope.$watch('sharingProfile.primaryConnectionIdentifier', | ||||
|         function retrievePrimaryConnection(identifier) { | ||||
|  | ||||
|         // Pull data from existing sharing profile | ||||
|         connectionService.getConnection($scope.selectedDataSource, identifier) | ||||
|         .then(function connectionRetrieved(connection) { | ||||
|             $scope.primaryConnection = connection; | ||||
|         }, requestService.WARN); | ||||
|         if (identifier) { | ||||
|             connectionService.getConnection($scope.selectedDataSource, identifier) | ||||
|             .then(function connectionRetrieved(connection) { | ||||
|                 $scope.primaryConnection = connection; | ||||
|             }, requestService.WARN); | ||||
|         } | ||||
|  | ||||
|     }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user