mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +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',
|
$scope.$watch('sharingProfile.primaryConnectionIdentifier',
|
||||||
function retrievePrimaryConnection(identifier) {
|
function retrievePrimaryConnection(identifier) {
|
||||||
|
|
||||||
// Pull data from existing sharing profile
|
if (identifier) {
|
||||||
connectionService.getConnection($scope.selectedDataSource, identifier)
|
connectionService.getConnection($scope.selectedDataSource, identifier)
|
||||||
.then(function connectionRetrieved(connection) {
|
.then(function connectionRetrieved(connection) {
|
||||||
$scope.primaryConnection = connection;
|
$scope.primaryConnection = connection;
|
||||||
}, requestService.WARN);
|
}, requestService.WARN);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user