GUACAMOLE-526: Move handling of request error notification to guacNotification, resolving circular dependency.

This commit is contained in:
Michael Jumper committed 2018-04-26 22:28:18 -07:00
1 parent 266b445c21
commit ae6b5fc8bb
10 files changed
+26 -41

No files matched your search

@@ -221,7 +221,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
connectionGroupService.saveConnectionGroup($scope.selectedDataSource, $scope.connectionGroup)
.then(function savedConnectionGroup() {
$location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections');
}, requestService.SHOW_NOTIFICATION);
}, guacNotification.SHOW_REQUEST_ERROR);
};
@@ -261,7 +261,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
connectionGroupService.deleteConnectionGroup($scope.selectedDataSource, $scope.connectionGroup)
.then(function deletedConnectionGroup() {
$location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections');
}, requestService.SHOW_NOTIFICATION);
}, guacNotification.SHOW_REQUEST_ERROR);
};