GUACAMOLE-526: Only pull primary connection for sharing profile once identifier is known.

This commit is contained in:
Michael Jumper
2018-04-27 00:12:36 -07:00
parent 2ff980dede
commit 0d63d6cef4

View File

@@ -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);
}
}); });