mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUACAMOLE-526: Update webapp to angular 1.6.9.
This commit is contained in:
		| @@ -184,7 +184,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|  | ||||
|     // Pull connection attribute schema | ||||
|     schemaService.getConnectionAttributes($scope.selectedDataSource) | ||||
|     .success(function attributesReceived(attributes) { | ||||
|     .then(function attributesReceived(attributes) { | ||||
|         $scope.attributes = attributes; | ||||
|     }); | ||||
|  | ||||
| @@ -194,13 +194,13 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|         ConnectionGroup.ROOT_IDENTIFIER, | ||||
|         [PermissionSet.ObjectPermissionType.ADMINISTER] | ||||
|     ) | ||||
|     .success(function connectionGroupReceived(rootGroup) { | ||||
|     .then(function connectionGroupReceived(rootGroup) { | ||||
|         $scope.rootGroup = rootGroup; | ||||
|     }); | ||||
|      | ||||
|     // Query the user's permissions for the current connection | ||||
|     permissionService.getEffectivePermissions($scope.selectedDataSource, authenticationService.getCurrentUsername()) | ||||
|     .success(function permissionsReceived(permissions) { | ||||
|     .then(function permissionsReceived(permissions) { | ||||
|                  | ||||
|         $scope.permissions = permissions; | ||||
|                          | ||||
| @@ -230,7 +230,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|     | ||||
|     // Get protocol metadata | ||||
|     schemaService.getProtocols($scope.selectedDataSource) | ||||
|     .success(function protocolsReceived(protocols) { | ||||
|     .then(function protocolsReceived(protocols) { | ||||
|         $scope.protocols = protocols; | ||||
|     }); | ||||
|  | ||||
| @@ -244,13 +244,13 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|  | ||||
|         // Pull data from existing connection | ||||
|         connectionService.getConnection($scope.selectedDataSource, identifier) | ||||
|         .success(function connectionRetrieved(connection) { | ||||
|         .then(function connectionRetrieved(connection) { | ||||
|             $scope.connection = connection; | ||||
|         }); | ||||
|  | ||||
|         // Pull connection history | ||||
|         connectionService.getConnectionHistory($scope.selectedDataSource, identifier) | ||||
|         .success(function historyReceived(historyEntries) { | ||||
|         .then(function historyReceived(historyEntries) { | ||||
|  | ||||
|             // Wrap all history entries for sake of display | ||||
|             $scope.historyEntryWrappers = []; | ||||
| @@ -262,7 +262,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|  | ||||
|         // Pull connection parameters | ||||
|         connectionService.getConnectionParameters($scope.selectedDataSource, identifier) | ||||
|         .success(function parametersReceived(parameters) { | ||||
|         .then(function parametersReceived(parameters) { | ||||
|             $scope.parameters = parameters; | ||||
|         }); | ||||
|     } | ||||
| @@ -272,7 +272,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|  | ||||
|         // Pull data from cloned connection | ||||
|         connectionService.getConnection($scope.selectedDataSource, cloneSourceIdentifier) | ||||
|         .success(function connectionRetrieved(connection) { | ||||
|         .then(function connectionRetrieved(connection) { | ||||
|             $scope.connection = connection; | ||||
|              | ||||
|             // Clear the identifier field because this connection is new | ||||
| @@ -284,7 +284,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|          | ||||
|         // Pull connection parameters from cloned connection | ||||
|         connectionService.getConnectionParameters($scope.selectedDataSource, cloneSourceIdentifier) | ||||
|         .success(function parametersReceived(parameters) { | ||||
|         .then(function parametersReceived(parameters) { | ||||
|             $scope.parameters = parameters; | ||||
|         }); | ||||
|     } | ||||
| @@ -388,7 +388,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|  | ||||
|         // Save the connection | ||||
|         connectionService.saveConnection($scope.selectedDataSource, $scope.connection) | ||||
|         .success(function savedConnection() { | ||||
|         .then(function savedConnection() { | ||||
|             $location.url('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections'); | ||||
|         }) | ||||
|  | ||||
| @@ -438,7 +438,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i | ||||
|  | ||||
|         // Delete the connection | ||||
|         connectionService.deleteConnection($scope.selectedDataSource, $scope.connection) | ||||
|         .success(function deletedConnection() { | ||||
|         .then(function deletedConnection() { | ||||
|             $location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections'); | ||||
|         }) | ||||
|  | ||||
|   | ||||
| @@ -129,13 +129,13 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope' | ||||
|      | ||||
|     // Pull connection group attribute schema | ||||
|     schemaService.getConnectionGroupAttributes($scope.selectedDataSource) | ||||
|     .success(function attributesReceived(attributes) { | ||||
|     .then(function attributesReceived(attributes) { | ||||
|         $scope.attributes = attributes; | ||||
|     }); | ||||
|  | ||||
|     // Query the user's permissions for the current connection group | ||||
|     permissionService.getEffectivePermissions($scope.selectedDataSource, authenticationService.getCurrentUsername()) | ||||
|     .success(function permissionsReceived(permissions) { | ||||
|     .then(function permissionsReceived(permissions) { | ||||
|                  | ||||
|         $scope.permissions = permissions; | ||||
|                          | ||||
| @@ -161,14 +161,14 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope' | ||||
|         ConnectionGroup.ROOT_IDENTIFIER, | ||||
|         [PermissionSet.ObjectPermissionType.ADMINISTER] | ||||
|     ) | ||||
|     .success(function connectionGroupReceived(rootGroup) { | ||||
|     .then(function connectionGroupReceived(rootGroup) { | ||||
|         $scope.rootGroup = rootGroup; | ||||
|     }); | ||||
|  | ||||
|     // If we are editing an existing connection group, pull its data | ||||
|     if (identifier) { | ||||
|         connectionGroupService.getConnectionGroup($scope.selectedDataSource, identifier) | ||||
|         .success(function connectionGroupReceived(connectionGroup) { | ||||
|         .then(function connectionGroupReceived(connectionGroup) { | ||||
|             $scope.connectionGroup = connectionGroup; | ||||
|         }); | ||||
|     } | ||||
| @@ -230,12 +230,12 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope' | ||||
|  | ||||
|         // Save the connection | ||||
|         connectionGroupService.saveConnectionGroup($scope.selectedDataSource, $scope.connectionGroup) | ||||
|         .success(function savedConnectionGroup() { | ||||
|         .then(function savedConnectionGroup() { | ||||
|             $location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections'); | ||||
|         }) | ||||
|  | ||||
|         // Notify of any errors | ||||
|         .error(function connectionGroupSaveFailed(error) { | ||||
|         ['catch'](function connectionGroupSaveFailed(error) { | ||||
|             guacNotification.showStatus({ | ||||
|                 'className'  : 'error', | ||||
|                 'title'      : 'MANAGE_CONNECTION_GROUP.DIALOG_HEADER_ERROR', | ||||
| @@ -280,12 +280,12 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope' | ||||
|  | ||||
|         // Delete the connection group | ||||
|         connectionGroupService.deleteConnectionGroup($scope.selectedDataSource, $scope.connectionGroup) | ||||
|         .success(function deletedConnectionGroup() { | ||||
|         .then(function deletedConnectionGroup() { | ||||
|             $location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections'); | ||||
|         }) | ||||
|  | ||||
|         // Notify of any errors | ||||
|         .error(function connectionGroupDeletionFailed(error) { | ||||
|         ['catch'](function connectionGroupDeletionFailed(error) { | ||||
|             guacNotification.showStatus({ | ||||
|                 'className'  : 'error', | ||||
|                 'title'      : 'MANAGE_CONNECTION_GROUP.DIALOG_HEADER_ERROR', | ||||
|   | ||||
| @@ -170,13 +170,13 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|     // Pull sharing profile attribute schema | ||||
|     schemaService.getSharingProfileAttributes($scope.selectedDataSource) | ||||
|     .success(function attributesReceived(attributes) { | ||||
|     .then(function attributesReceived(attributes) { | ||||
|         $scope.attributes = attributes; | ||||
|     }); | ||||
|  | ||||
|     // Query the user's permissions for the current sharing profile | ||||
|     permissionService.getEffectivePermissions($scope.selectedDataSource, authenticationService.getCurrentUsername()) | ||||
|     .success(function permissionsReceived(permissions) { | ||||
|     .then(function permissionsReceived(permissions) { | ||||
|  | ||||
|         $scope.permissions = permissions; | ||||
|  | ||||
| @@ -212,7 +212,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|     // Get protocol metadata | ||||
|     schemaService.getProtocols($scope.selectedDataSource) | ||||
|     .success(function protocolsReceived(protocols) { | ||||
|     .then(function protocolsReceived(protocols) { | ||||
|         $scope.protocols = protocols; | ||||
|     }); | ||||
|  | ||||
| @@ -221,13 +221,13 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|         // Pull data from existing sharing profile | ||||
|         sharingProfileService.getSharingProfile($scope.selectedDataSource, identifier) | ||||
|         .success(function sharingProfileRetrieved(sharingProfile) { | ||||
|         .then(function sharingProfileRetrieved(sharingProfile) { | ||||
|             $scope.sharingProfile = sharingProfile; | ||||
|         }); | ||||
|  | ||||
|         // Pull sharing profile parameters | ||||
|         sharingProfileService.getSharingProfileParameters($scope.selectedDataSource, identifier) | ||||
|         .success(function parametersReceived(parameters) { | ||||
|         .then(function parametersReceived(parameters) { | ||||
|             $scope.parameters = parameters; | ||||
|         }); | ||||
|  | ||||
| @@ -238,7 +238,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|         // Pull data from cloned sharing profile | ||||
|         sharingProfileService.getSharingProfile($scope.selectedDataSource, cloneSourceIdentifier) | ||||
|         .success(function sharingProfileRetrieved(sharingProfile) { | ||||
|         .then(function sharingProfileRetrieved(sharingProfile) { | ||||
|  | ||||
|             // Store data of sharing profile being cloned | ||||
|             $scope.sharingProfile = sharingProfile; | ||||
| @@ -250,7 +250,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|         // Pull sharing profile parameters from cloned sharing profile | ||||
|         sharingProfileService.getSharingProfileParameters($scope.selectedDataSource, cloneSourceIdentifier) | ||||
|         .success(function parametersReceived(parameters) { | ||||
|         .then(function parametersReceived(parameters) { | ||||
|             $scope.parameters = parameters; | ||||
|         }); | ||||
|  | ||||
| @@ -274,7 +274,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|         // Pull data from existing sharing profile | ||||
|         connectionService.getConnection($scope.selectedDataSource, identifier) | ||||
|         .success(function connectionRetrieved(connection) { | ||||
|         .then(function connectionRetrieved(connection) { | ||||
|             $scope.primaryConnection = connection; | ||||
|         }); | ||||
|  | ||||
| @@ -351,12 +351,12 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|         // Save the sharing profile | ||||
|         sharingProfileService.saveSharingProfile($scope.selectedDataSource, $scope.sharingProfile) | ||||
|         .success(function savedSharingProfile() { | ||||
|         .then(function savedSharingProfile() { | ||||
|             $location.url('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections'); | ||||
|         }) | ||||
|  | ||||
|         // Notify of any errors | ||||
|         .error(function sharingProfileSaveFailed(error) { | ||||
|         ['catch'](function sharingProfileSaveFailed(error) { | ||||
|             guacNotification.showStatus({ | ||||
|                 'className'  : 'error', | ||||
|                 'title'      : 'MANAGE_SHARING_PROFILE.DIALOG_HEADER_ERROR', | ||||
| @@ -389,12 +389,12 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', | ||||
|  | ||||
|         // Delete the sharing profile | ||||
|         sharingProfileService.deleteSharingProfile($scope.selectedDataSource, $scope.sharingProfile) | ||||
|         .success(function deletedSharingProfile() { | ||||
|         .then(function deletedSharingProfile() { | ||||
|             $location.path('/settings/' + encodeURIComponent($scope.selectedDataSource) + '/connections'); | ||||
|         }) | ||||
|  | ||||
|         // Notify of any errors | ||||
|         .error(function sharingProfileDeletionFailed(error) { | ||||
|         ['catch'](function sharingProfileDeletionFailed(error) { | ||||
|             guacNotification.showStatus({ | ||||
|                 'className'  : 'error', | ||||
|                 'title'      : 'MANAGE_SHARING_PROFILE.DIALOG_HEADER_ERROR', | ||||
|   | ||||
| @@ -529,7 +529,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|     }); | ||||
|  | ||||
|     // Pull user attribute schema | ||||
|     schemaService.getUserAttributes(selectedDataSource).success(function attributesReceived(attributes) { | ||||
|     schemaService.getUserAttributes(selectedDataSource).then(function attributesReceived(attributes) { | ||||
|         $scope.attributes = attributes; | ||||
|     }); | ||||
|  | ||||
| @@ -557,12 +557,12 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|         $scope.selfUsername = username; | ||||
|  | ||||
|         // Pull user permissions | ||||
|         permissionService.getPermissions(selectedDataSource, username).success(function gotPermissions(permissions) { | ||||
|         permissionService.getPermissions(selectedDataSource, username).then(function gotPermissions(permissions) { | ||||
|             $scope.permissionFlags = PermissionFlagSet.fromPermissionSet(permissions); | ||||
|         }) | ||||
|  | ||||
|         // If permissions cannot be retrieved, use empty permissions | ||||
|         .error(function permissionRetrievalFailed() { | ||||
|         ['catch'](function permissionRetrievalFailed() { | ||||
|             $scope.permissionFlags = new PermissionFlagSet(); | ||||
|         }); | ||||
|     } | ||||
| @@ -585,13 +585,13 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|  | ||||
|         // Pull user permissions | ||||
|         permissionService.getPermissions(selectedDataSource, cloneSourceUsername) | ||||
|         .success(function gotPermissions(permissions) { | ||||
|         .then(function gotPermissions(permissions) { | ||||
|             $scope.permissionFlags = PermissionFlagSet.fromPermissionSet(permissions); | ||||
|             permissionsAdded = permissions; | ||||
|         }) | ||||
|  | ||||
|         // If permissions cannot be retrieved, use empty permissions | ||||
|         .error(function permissionRetrievalFailed() { | ||||
|         ['catch'](function permissionRetrievalFailed() { | ||||
|             $scope.permissionFlags = new PermissionFlagSet(); | ||||
|         }); | ||||
|     } | ||||
| @@ -1117,7 +1117,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|         else | ||||
|             saveUserPromise = userService.createUser(selectedDataSource, $scope.user); | ||||
|  | ||||
|         saveUserPromise.success(function savedUser() { | ||||
|         saveUserPromise.then(function savedUser() { | ||||
|  | ||||
|             // Move permission flags if username differs from marker | ||||
|             if ($scope.selfUsername !== $scope.user.username) { | ||||
| @@ -1138,12 +1138,12 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|  | ||||
|             // Upon success, save any changed permissions | ||||
|             permissionService.patchPermissions(selectedDataSource, $scope.user.username, permissionsAdded, permissionsRemoved) | ||||
|             .success(function patchedUserPermissions() { | ||||
|             .then(function patchedUserPermissions() { | ||||
|                 $location.url('/settings/users'); | ||||
|             }) | ||||
|  | ||||
|             // Notify of any errors | ||||
|             .error(function userPermissionsPatchFailed(error) { | ||||
|             ['catch'](function userPermissionsPatchFailed(error) { | ||||
|                 guacNotification.showStatus({ | ||||
|                     'className'  : 'error', | ||||
|                     'title'      : 'MANAGE_USER.DIALOG_HEADER_ERROR', | ||||
| @@ -1201,12 +1201,12 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|  | ||||
|         // Delete the user  | ||||
|         userService.deleteUser(selectedDataSource, $scope.user) | ||||
|         .success(function deletedUser() { | ||||
|         .then(function deletedUser() { | ||||
|             $location.path('/settings/users'); | ||||
|         }) | ||||
|  | ||||
|         // Notify of any errors | ||||
|         .error(function userDeletionFailed(error) { | ||||
|         ['catch'](function userDeletionFailed(error) { | ||||
|             guacNotification.showStatus({ | ||||
|                 'className'  : 'error', | ||||
|                 'title'      : 'MANAGE_USER.DIALOG_HEADER_ERROR', | ||||
|   | ||||
| @@ -32,7 +32,7 @@ | ||||
|             <tr> | ||||
|                 <th>{{'MANAGE_CONNECTION.FIELD_HEADER_PROTOCOL' | translate}}</th> | ||||
|                 <td> | ||||
|                     <select ng-model="connection.protocol" ng-options="name as getProtocolName(protocol.name) | translate for (name, protocol) in protocols | orderBy: name"></select> | ||||
|                     <select ng-model="connection.protocol" ng-options="protocol.name as getProtocolName(protocol.name) | translate for protocol in protocols | toArray | orderBy: name"></select> | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user